Select to view content in your preferred language

Minor Issue: Explore Feeds and Manage Privacy at bottom of page

1145
3
Jump to solution
02-27-2023 06:55 AM
ArmstKP
Frequent Contributor

Does anybody know why these two things have blow rectangles around them at the bottom of my Hub page?  Anybody ever seen this, or any other color?

 

ArmstKP_0-1677509714626.png

 

0 Kudos
1 Solution

Accepted Solutions
KlaraSchmitt
Esri Regular Contributor

@ArmstKP 

Embedded styles within the Text Card are not contained to the Text Card; they will apply to the entire page if your selectors are generic. Our application uses a lot of the common HTML elements, so that is likely what is happening if you've attached styles to the button element. You can prevent this from happening by adding a unique class name to the row containing your Text Card and then referencing that row in your CSS to limit how the styles are applied.

Example of generic selector usage
button {background-color: blue; color: gray}

Example of targeted selector using row class
.uniqueRowClassName button {background-color: blue; color: gray}

 

View solution in original post

3 Replies
KlaraSchmitt
Esri Regular Contributor

Do you have any custom CSS on your page in Text Cards or in your header that affects buttons or perhaps uses a !important? That looks like the result of custom CSS being applied to generic selectors without enough specificity.

0 Kudos
ArmstKP
Frequent Contributor

@KlaraSchmitt I do have custom CSS for one button on the page.  I thought that would only effect that object or section of code, not the Explore Feeds and Manage Privacy section...?

0 Kudos
KlaraSchmitt
Esri Regular Contributor

@ArmstKP 

Embedded styles within the Text Card are not contained to the Text Card; they will apply to the entire page if your selectors are generic. Our application uses a lot of the common HTML elements, so that is likely what is happening if you've attached styles to the button element. You can prevent this from happening by adding a unique class name to the row containing your Text Card and then referencing that row in your CSS to limit how the styles are applied.

Example of generic selector usage
button {background-color: blue; color: gray}

Example of targeted selector using row class
.uniqueRowClassName button {background-color: blue; color: gray}