-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove Roboto and make it possible to define custom font, defau…
…lt to system font This feature contains the following changes: docs(README.md): explain how font-related styles should be supplied fix(index.html): remove Roboto & set examples to use our default font stack Before this commit, the documentation used to request Roboto be downloaded from Google Fonts. Some components used this font to render their UI, while some inherited their font from Kompendium's body font. Here we set the default font to our cross-browser font stack, and tell all components to render their UI with this font and the specified font-related styles instead. The following commits will make some components free from Roboto. fix(badge): remove dependency on Roboto font fix(banner): remove dependency on Roboto font fix(button): remove dependency on Roboto font fix(breadcrumbs): render divider properly without dependency to chosen font This ensures that the divider character is vertically & horizontally center-aligned. fix(button-group): remove dependency on Roboto font fix(checkbox): remove dependency on Roboto font fix(chip-set): remove dependency on Roboto font fix(code-editor): ensure usage of cross-browser font stack This component was only using `monospace` as `font-family` to render the code. However, we have a `mixin` which offers a better font stack and defaults to more aesthetically pleasing fonts. The font stack has `monospace` as its last fallback. fix(collapsible-section): remove dependency on Roboto font fix(dialog): remove dependency on Roboto font fix(header): ensure optimal rendering of fonts As heading and subheading fonts are now using our font-stack, their `font-weight` had to be adjusted. fix(helper-line): remove dependency on Roboto font chore(style/internal): delete unused "helper-text" mixins Since we started using `limel-helper-line`, these mixins became obsolete. Previously, they were used in all components with the helper-line. fix(input elements): remove dependency on Roboto font From now on these component will inherit its unspecified font-related styles: - input field - select - picker - chipset - slider fix(list, menu): remove dependency on Roboto font fix(select): ensure optimal rendering of fonts As heading is now using our font-stack, its `font-weight` had to be adjusted. fix(select): remove dependency on Roboto font fix(slider): remove dependency on Roboto font fix(snackbar): remove dependency on Roboto font fix(switch): remove dependency on Roboto font fix(tab-bar): remove dependency on Roboto font fix(table): remove dependency on Roboto font fix(form): remove dependency on Roboto font Also, this commit ensures if `lime-typography.scss` has been imported anywhere that we have missed, or couldn't remove, the font-family that are coming from this file would not be automatically set to MDC's font stack. fix(circular-progress): fit in longer values better in `small` & `x-small` sizes
- Loading branch information
1 parent
9711f52
commit aab0740
Showing
31 changed files
with
198 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,4 +77,5 @@ | |
.heading { | ||
margin: 0; | ||
font-size: 1rem; | ||
font-weight: 600; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,6 @@ | |
|
||
* { | ||
box-sizing: border-box; | ||
font-family: 'Roboto'; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,6 @@ | |
color: rgb(var(--contrast-1100)); | ||
|
||
font-size: 0.875rem; | ||
font-family: 'Roboto'; | ||
} | ||
|
||
iframe { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.