Skip to content

Commit

Permalink
fix: remove CSS custom selector ref for font-family
Browse files Browse the repository at this point in the history
This commit addresses an issue where the custom web font is not loading
with the recent release of WCSS. The only change from the previous
version and the new version was the inclusion of the CSS custom property
for font name versus allowing the Sass variable render the value in the
output CSS.

Changes to be committed:
modified:   src/_fonts.scss
  • Loading branch information
blackfalcon committed Oct 4, 2023
1 parent 36451b6 commit a7c1b55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

// Auro rule
@font-face {
font-family: var(--ds-asset-font-circular-family-name, $ds-asset-font-circular-family-name);
font-family: $ds-asset-font-circular-family-name;
font-weight: var(--ds-text-heading-display-weight, $ds-text-heading-display-weight);
font-style: normal;

Expand All @@ -27,7 +27,7 @@
/// @example scss - import src file
/// @import "./node_modules/@aurodesignsystem/webcorestylesheets/dist/fonts";
@font-face {
font-family: var(--ds-asset-font-circular-family-name, $ds-asset-font-circular-family-name);
font-family: $ds-asset-font-circular-family-name;
font-weight: var(--ds-text-heading-medium-weight, $ds-text-heading-medium-weight);
font-style: normal;

Expand All @@ -40,7 +40,7 @@
/// @example scss - import src file
/// @import "./node_modules/@aurodesignsystem/webcorestylesheets/dist/fonts";
@font-face {
font-family: var(--ds-asset-font-circular-family-name, $ds-asset-font-circular-family-name);
font-family: $ds-asset-font-circular-family-name;
font-weight: var(--ds-text-body-default-weight, $ds-text-body-default-weight);
font-style: normal;

Expand Down

0 comments on commit a7c1b55

Please sign in to comment.