Different (conditional) background colors in a list – Microsoft List vs. Sharepoint Group
Hi,
I have created a Microsoft List that uses conditional row formatting to mark entries that have been changed within the last 31 days with a light blue background color.
This is the JSON for it:
{
“$schema”: “https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json”,
“additionalRowClass”: {
“operator”: “:”,
“operands”: [
{
“operator”: “<“,
“operands”: [
“[$Age]”,
31
]
},
“sp-css-backgroundColor-BgLightBlue sp-field-fontSizeSmall sp-css-color-BlackText”,
“”
]
}
}
This works fine, as long as I view the list from within Microsoft Lists.
I have also added the List to our SharePoint Group Site, but the the background color here does not look the same. Instead, it is much darker and seemingly the “palette” of usable colors is much smaller.
I tested some other nuances by changing the ‘sp-css-backgroundColor’ to BgGold, BgLightBlue20 and BgLightGrey but always ended up with a much darker background color when displaying the List from the Sharepoint Group.
Does anyone know if there is some parameter in the Sharepoint Group settings that I can change to make the Group display the colors correctly, or any other way to solve this?
Thanks.
Best regards
Patrick
List View from within Microsoft Lists:
List View when embedded in Sharepoint Group:
Hi,I have created a Microsoft List that uses conditional row formatting to mark entries that have been changed within the last 31 days with a light blue background color.This is the JSON for it:{
“$schema”: “https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json”,
“additionalRowClass”: {
“operator”: “:”,
“operands”: [
{
“operator”: “<“,
“operands”: [
“[$Age]”,
31
]
},
“sp-css-backgroundColor-BgLightBlue sp-field-fontSizeSmall sp-css-color-BlackText”,
“”
]
}
} This works fine, as long as I view the list from within Microsoft Lists. I have also added the List to our SharePoint Group Site, but the the background color here does not look the same. Instead, it is much darker and seemingly the “palette” of usable colors is much smaller.I tested some other nuances by changing the ‘sp-css-backgroundColor’ to BgGold, BgLightBlue20 and BgLightGrey but always ended up with a much darker background color when displaying the List from the Sharepoint Group. Does anyone know if there is some parameter in the Sharepoint Group settings that I can change to make the Group display the colors correctly, or any other way to solve this?Thanks. Best regardsPatrick List View from within Microsoft Lists: List View when embedded in Sharepoint Group: Read More