Skip to content

feat(icon): support for dynamic type #1246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 9, 2023
8 changes: 4 additions & 4 deletions src/components/icon/icon.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ svg {
/* Icon RTL
* -----------------------------------------------------------
*/

/**
* Safari <16.4 incorrectly reports
* that it supports :dir(rtl) when it does not.
Expand All @@ -53,7 +53,7 @@ svg {
transform: scaleX(-1);
}
}

/**
* Fallback for browsers that support
* neither :host-context nor :dir.
Expand Down Expand Up @@ -91,11 +91,11 @@ svg {
*/

:host(.icon-small) {
font-size: 18px !important;
font-size: 1.125rem !important;
}

:host(.icon-large) {
font-size: 32px !important;
font-size: 2rem !important;
}

/* Icon Colors
Expand Down