
List View from within Microsoft Lists:
List View when embedded in Sharepoint Group:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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:
I noticed that this isn't the best place to ask such a question and posted it over in the Tech Community.
Feel free to delete my post here (As I can't do it myself).
Thanks.
Hi @Allert, Patrick ,
Thank you for posting in this community. We also don't have the authority to delete threads you post. You could click the "Accept Answer" button to close this thread.
Other than that, here are some suggestions I can give you for this case that I hope will help you:
The issue you're experiencing with the background colors in your Microsoft List when viewed from a SharePoint Group site is likely due to differences in how SharePoint and Microsoft Lists handle CSS styles and themes. SharePoint may apply its own styles that override or alter the appearance of your custom formatting.
Unfortunately, there isn't a specific parameter in the SharePoint Group settings that can universally adjust how colors are displayed for lists. The color palette used in SharePoint may be limited compared to Microsoft Lists, which can lead to the discrepancies you're seeing.
To address this, you might consider the following approaches:
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.