CAWebPublishing / CAWeb

CA State Template WordPress, Divi Child Theme
https://caweb.cdt.ca.gov
13 stars 9 forks source link

[Bug]: Icon picker css specifity #821

Open markaplet opened 1 year ago

markaplet commented 1 year ago

What happened?

Recent updates to Divi (4.21.0) or 1.9.0 of the template are causing the icons in the Divi icon picker to no longer appear correctly. Inspecting the CSS it appears that Divi's specificity is overwriting CA Gov CSS. In particular this line:

.et-db #et-boc .et-l .et-fb-font-icon-list li.et-pb-fa-icon::after {
    font-family: FontAwesome !important;
}

Changing the above font-family to CaGov in the inspector fixes the broken icons.

CAWeb Version

1.9.0

Divi Version

4.21.0

Relevant log output

No response

markaplet commented 1 year ago

FWIW: I added the following line to /css/admin.min.css to increase specificity.

/* Increases CAWeb icon picker specificity so icons will appear. */
.et-db #et-boc .et-l #et-fb-icon_picker.et-fb-font-icon-list li.et-pb-fa-icon::after {
    font-family: CAGov, FontAwesome !important;
}

Additionally, I noticed that 1.9.0 of the theme has removed all the font awesome icons from the icon picker. To reproduce this issue do the following: