Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 68b04a8

Browse files
author
Germain
authored
Fix font-family definition for emojis (#11170)
* Fix font-family definition for emojis * prettier fix * Rephrase comment about font family overrides
1 parent 2ea8a03 commit 68b04a8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

res/css/_common.pcss

+14
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@ limitations under the License.
5151
--dialog-zIndex-standard: calc(var(--dialog-zIndex-standard-background) + 1); /* 4012 */
5252
}
5353

54+
/**
55+
* We need to increase the specificity of the selector to override the
56+
* custom property set by the design tokens package
57+
*/
58+
[class^="cpd-theme"][class^="cpd-theme"] {
59+
/**
60+
* The design tokens package currently does not expose the fallback fonts
61+
* We want to keep on re-using `$font-family` to not break custom themes
62+
* and because we can to use `Twemoji` to display emoji rather than using
63+
* system ones
64+
*/
65+
--cpd-font-family-sans: $font-family;
66+
}
67+
5468
@media only percy {
5569
:root {
5670
--percy-color-avatar: $username-variant2-color;

0 commit comments

Comments
 (0)