forked from momentum-design/momentum-design
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: text component updated (momentum-design#891)
* refactor: updated the types of text * refactor(wip): updating text component as per tech breakdown * feat: created defined types for valid text tags * fix: removed utils from e2e file * refactor: review comments incorporated * chore: updated switch case * test: updated snapshots * revert: using switch case instead of static html from lit * refactor: moved partname to constants * fix: updated text component to add default value to type attr --------- Co-authored-by: Arjun Kesava <arjun.kesava@gmail.com>
- Loading branch information
1 parent
8f320e1
commit 0378f65
Showing
171 changed files
with
375 additions
and
196 deletions.
There are no files selected for viewing
Binary file added
BIN
+7.37 KB
...ponents/src/components/text/__screenshots__/chrome/mdc-text-body-large-bold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.51 KB
...components/text/__screenshots__/chrome/mdc-text-body-large-medium-underline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.47 KB
...nents/src/components/text/__screenshots__/chrome/mdc-text-body-large-medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.46 KB
...omponents/text/__screenshots__/chrome/mdc-text-body-large-regular-underline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.43 KB
...ents/src/components/text/__screenshots__/chrome/mdc-text-body-large-regular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-16.7 KB
...s/components/src/components/text/__screenshots__/chrome/mdc-text-body-large.png
Binary file not shown.
Binary file added
BIN
+6.55 KB
...nents/src/components/text/__screenshots__/chrome/mdc-text-body-midsize-bold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.48 KB
...mponents/text/__screenshots__/chrome/mdc-text-body-midsize-medium-underline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.58 KB
...nts/src/components/text/__screenshots__/chrome/mdc-text-body-midsize-medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.37 KB
...ponents/text/__screenshots__/chrome/mdc-text-body-midsize-regular-underline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.49 KB
...ts/src/components/text/__screenshots__/chrome/mdc-text-body-midsize-regular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-12.2 KB
...components/src/components/text/__screenshots__/chrome/mdc-text-body-regular.png
Binary file not shown.
Binary file added
BIN
+5.18 KB
...ponents/src/components/text/__screenshots__/chrome/mdc-text-body-small-bold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.36 KB
...components/text/__screenshots__/chrome/mdc-text-body-small-medium-underline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.33 KB
...nents/src/components/text/__screenshots__/chrome/mdc-text-body-small-medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.28 KB
...omponents/text/__screenshots__/chrome/mdc-text-body-small-regular-underline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.25 KB
...ents/src/components/text/__screenshots__/chrome/mdc-text-body-small-regular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-9.96 KB
...s/components/src/components/text/__screenshots__/chrome/mdc-text-body-small.png
Binary file not shown.
Binary file removed
BIN
-59.2 KB
...es/components/src/components/text/__screenshots__/chrome/mdc-text-heading-1.png
Binary file not shown.
Binary file removed
BIN
-46.1 KB
...es/components/src/components/text/__screenshots__/chrome/mdc-text-heading-2.png
Binary file not shown.
Binary file removed
BIN
-23.5 KB
...es/components/src/components/text/__screenshots__/chrome/mdc-text-heading-3.png
Binary file not shown.
Binary file removed
BIN
-19.8 KB
...es/components/src/components/text/__screenshots__/chrome/mdc-text-heading-4.png
Binary file not shown.
Binary file removed
BIN
-17.3 KB
...es/components/src/components/text/__screenshots__/chrome/mdc-text-heading-5.png
Binary file not shown.
Binary file removed
BIN
-14.2 KB
...es/components/src/components/text/__screenshots__/chrome/mdc-text-heading-6.png
Binary file not shown.
Binary file removed
BIN
-12 KB
...es/components/src/components/text/__screenshots__/chrome/mdc-text-heading-7.png
Binary file not shown.
Binary file added
BIN
+15.5 KB
...ents/src/components/text/__screenshots__/chrome/mdc-text-heading-large-bold.png
Oops, something went wrong.
Binary file added
BIN
+16.2 KB
...ts/src/components/text/__screenshots__/chrome/mdc-text-heading-large-medium.png
Oops, something went wrong.
Binary file added
BIN
+16.3 KB
...s/src/components/text/__screenshots__/chrome/mdc-text-heading-large-regular.png
Oops, something went wrong.
Binary file added
BIN
+11.9 KB
...ts/src/components/text/__screenshots__/chrome/mdc-text-heading-midsize-bold.png
Oops, something went wrong.
Binary file added
BIN
+12.3 KB
.../src/components/text/__screenshots__/chrome/mdc-text-heading-midsize-medium.png
Oops, something went wrong.
Binary file added
BIN
+12.2 KB
...src/components/text/__screenshots__/chrome/mdc-text-heading-midsize-regular.png
Oops, something went wrong.
Binary file added
BIN
+9.8 KB
...ents/src/components/text/__screenshots__/chrome/mdc-text-heading-small-bold.png
Oops, something went wrong.
Binary file added
BIN
+10.3 KB
...ts/src/components/text/__screenshots__/chrome/mdc-text-heading-small-medium.png
Oops, something went wrong.
Binary file added
BIN
+10.2 KB
...s/src/components/text/__screenshots__/chrome/mdc-text-heading-small-regular.png
Oops, something went wrong.
Binary file added
BIN
+19.8 KB
...nts/src/components/text/__screenshots__/chrome/mdc-text-heading-xlarge-bold.png
Oops, something went wrong.
Binary file added
BIN
+20.8 KB
...s/src/components/text/__screenshots__/chrome/mdc-text-heading-xlarge-medium.png
Oops, something went wrong.
Binary file added
BIN
+20.8 KB
.../src/components/text/__screenshots__/chrome/mdc-text-heading-xlarge-regular.png
Oops, something went wrong.
Binary file added
BIN
+26.5 KB
...ts/src/components/text/__screenshots__/chrome/mdc-text-headline-small-light.png
Oops, something went wrong.
Binary file added
BIN
+26.1 KB
.../src/components/text/__screenshots__/chrome/mdc-text-headline-small-regular.png
Oops, something went wrong.
Binary file removed
BIN
-8.32 KB
.../components/src/components/text/__screenshots__/chrome/mdc-text-image-title.png
Diff not rendered.
Binary file removed
BIN
-7.37 KB
packages/components/src/components/text/__screenshots__/chrome/mdc-text-label.png
Diff not rendered.
Binary file added
BIN
+7.79 KB
...onents/src/components/text/__screenshots__/firefox/mdc-text-body-large-bold.png
Oops, something went wrong.
Binary file added
BIN
+7.83 KB
...omponents/text/__screenshots__/firefox/mdc-text-body-large-medium-underline.png
Oops, something went wrong.
Binary file added
BIN
+7.81 KB
...ents/src/components/text/__screenshots__/firefox/mdc-text-body-large-medium.png
Oops, something went wrong.
Binary file added
BIN
+7.86 KB
...mponents/text/__screenshots__/firefox/mdc-text-body-large-regular-underline.png
Oops, something went wrong.
Binary file added
BIN
+7.83 KB
...nts/src/components/text/__screenshots__/firefox/mdc-text-body-large-regular.png
Oops, something went wrong.
Binary file removed
BIN
-16.4 KB
.../components/src/components/text/__screenshots__/firefox/mdc-text-body-large.png
Diff not rendered.
Binary file added
BIN
+6.65 KB
...ents/src/components/text/__screenshots__/firefox/mdc-text-body-midsize-bold.png
Oops, something went wrong.
Binary file added
BIN
+6.61 KB
...ponents/text/__screenshots__/firefox/mdc-text-body-midsize-medium-underline.png
Oops, something went wrong.
Binary file added
BIN
+6.6 KB
...ts/src/components/text/__screenshots__/firefox/mdc-text-body-midsize-medium.png
Oops, something went wrong.
Binary file added
BIN
+6.51 KB
...onents/text/__screenshots__/firefox/mdc-text-body-midsize-regular-underline.png
Oops, something went wrong.
Binary file added
BIN
+6.49 KB
...s/src/components/text/__screenshots__/firefox/mdc-text-body-midsize-regular.png
Oops, something went wrong.
Binary file removed
BIN
-12.1 KB
...omponents/src/components/text/__screenshots__/firefox/mdc-text-body-regular.png
Diff not rendered.
Binary file added
BIN
+5.43 KB
...onents/src/components/text/__screenshots__/firefox/mdc-text-body-small-bold.png
Oops, something went wrong.
Binary file added
BIN
+5.45 KB
...omponents/text/__screenshots__/firefox/mdc-text-body-small-medium-underline.png
Oops, something went wrong.
Binary file added
BIN
+5.43 KB
...ents/src/components/text/__screenshots__/firefox/mdc-text-body-small-medium.png
Oops, something went wrong.
Binary file added
BIN
+5.31 KB
...mponents/text/__screenshots__/firefox/mdc-text-body-small-regular-underline.png
Oops, something went wrong.
Binary file added
BIN
+5.28 KB
...nts/src/components/text/__screenshots__/firefox/mdc-text-body-small-regular.png
Oops, something went wrong.
Binary file removed
BIN
-9.72 KB
.../components/src/components/text/__screenshots__/firefox/mdc-text-body-small.png
Diff not rendered.
Binary file removed
BIN
-59.8 KB
...s/components/src/components/text/__screenshots__/firefox/mdc-text-heading-1.png
Diff not rendered.
Binary file removed
BIN
-47.2 KB
...s/components/src/components/text/__screenshots__/firefox/mdc-text-heading-2.png
Diff not rendered.
Binary file removed
BIN
-23.4 KB
...s/components/src/components/text/__screenshots__/firefox/mdc-text-heading-3.png
Diff not rendered.
Binary file removed
BIN
-19.1 KB
...s/components/src/components/text/__screenshots__/firefox/mdc-text-heading-4.png
Diff not rendered.
Binary file removed
BIN
-16.9 KB
...s/components/src/components/text/__screenshots__/firefox/mdc-text-heading-5.png
Diff not rendered.
Binary file removed
BIN
-14.4 KB
...s/components/src/components/text/__screenshots__/firefox/mdc-text-heading-6.png
Diff not rendered.
Binary file removed
BIN
-11.7 KB
...s/components/src/components/text/__screenshots__/firefox/mdc-text-heading-7.png
Diff not rendered.
Binary file added
BIN
+15.4 KB
...nts/src/components/text/__screenshots__/firefox/mdc-text-heading-large-bold.png
Oops, something went wrong.
Binary file added
BIN
+15.8 KB
...s/src/components/text/__screenshots__/firefox/mdc-text-heading-large-medium.png
Oops, something went wrong.
Binary file added
BIN
+15.9 KB
.../src/components/text/__screenshots__/firefox/mdc-text-heading-large-regular.png
Oops, something went wrong.
Binary file added
BIN
+11.7 KB
...s/src/components/text/__screenshots__/firefox/mdc-text-heading-midsize-bold.png
Oops, something went wrong.
Binary file added
BIN
+11.9 KB
...src/components/text/__screenshots__/firefox/mdc-text-heading-midsize-medium.png
Oops, something went wrong.
Binary file added
BIN
+11.8 KB
...rc/components/text/__screenshots__/firefox/mdc-text-heading-midsize-regular.png
Oops, something went wrong.
Binary file added
BIN
+9.81 KB
...nts/src/components/text/__screenshots__/firefox/mdc-text-heading-small-bold.png
Oops, something went wrong.
Binary file added
BIN
+9.86 KB
...s/src/components/text/__screenshots__/firefox/mdc-text-heading-small-medium.png
Oops, something went wrong.
Binary file added
BIN
+9.8 KB
.../src/components/text/__screenshots__/firefox/mdc-text-heading-small-regular.png
Oops, something went wrong.
Binary file added
BIN
+19.5 KB
...ts/src/components/text/__screenshots__/firefox/mdc-text-heading-xlarge-bold.png
Oops, something went wrong.
Binary file added
BIN
+20.1 KB
.../src/components/text/__screenshots__/firefox/mdc-text-heading-xlarge-medium.png
Oops, something went wrong.
Binary file added
BIN
+20 KB
...src/components/text/__screenshots__/firefox/mdc-text-heading-xlarge-regular.png
Oops, something went wrong.
Binary file added
BIN
+26 KB
...s/src/components/text/__screenshots__/firefox/mdc-text-headline-small-light.png
Oops, something went wrong.
Binary file added
BIN
+25.8 KB
...src/components/text/__screenshots__/firefox/mdc-text-headline-small-regular.png
Oops, something went wrong.
Binary file removed
BIN
-8.33 KB
...components/src/components/text/__screenshots__/firefox/mdc-text-image-title.png
Diff not rendered.
Binary file removed
BIN
-7.8 KB
packages/components/src/components/text/__screenshots__/firefox/mdc-text-label.png
Diff not rendered.
Binary file added
BIN
+7.37 KB
...ponents/src/components/text/__screenshots__/msedge/mdc-text-body-large-bold.png
Oops, something went wrong.
Binary file added
BIN
+7.51 KB
...components/text/__screenshots__/msedge/mdc-text-body-large-medium-underline.png
Oops, something went wrong.
Binary file added
BIN
+7.47 KB
...nents/src/components/text/__screenshots__/msedge/mdc-text-body-large-medium.png
Oops, something went wrong.
Binary file added
BIN
+7.46 KB
...omponents/text/__screenshots__/msedge/mdc-text-body-large-regular-underline.png
Oops, something went wrong.
Binary file added
BIN
+7.43 KB
...ents/src/components/text/__screenshots__/msedge/mdc-text-body-large-regular.png
Oops, something went wrong.
Binary file removed
BIN
-16.7 KB
...s/components/src/components/text/__screenshots__/msedge/mdc-text-body-large.png
Diff not rendered.
Binary file added
BIN
+6.55 KB
...nents/src/components/text/__screenshots__/msedge/mdc-text-body-midsize-bold.png
Oops, something went wrong.
Binary file added
BIN
+6.48 KB
...mponents/text/__screenshots__/msedge/mdc-text-body-midsize-medium-underline.png
Oops, something went wrong.
Binary file added
BIN
+6.58 KB
...nts/src/components/text/__screenshots__/msedge/mdc-text-body-midsize-medium.png
Oops, something went wrong.
Binary file added
BIN
+6.37 KB
...ponents/text/__screenshots__/msedge/mdc-text-body-midsize-regular-underline.png
Oops, something went wrong.
Binary file added
BIN
+6.49 KB
...ts/src/components/text/__screenshots__/msedge/mdc-text-body-midsize-regular.png
Oops, something went wrong.
Binary file removed
BIN
-12.2 KB
...components/src/components/text/__screenshots__/msedge/mdc-text-body-regular.png
Diff not rendered.
Binary file added
BIN
+5.18 KB
...ponents/src/components/text/__screenshots__/msedge/mdc-text-body-small-bold.png
Oops, something went wrong.
Binary file added
BIN
+5.36 KB
...components/text/__screenshots__/msedge/mdc-text-body-small-medium-underline.png
Oops, something went wrong.
Binary file added
BIN
+5.33 KB
...nents/src/components/text/__screenshots__/msedge/mdc-text-body-small-medium.png
Oops, something went wrong.
Binary file added
BIN
+5.28 KB
...omponents/text/__screenshots__/msedge/mdc-text-body-small-regular-underline.png
Oops, something went wrong.
Binary file added
BIN
+5.25 KB
...ents/src/components/text/__screenshots__/msedge/mdc-text-body-small-regular.png
Oops, something went wrong.
Binary file removed
BIN
-9.96 KB
...s/components/src/components/text/__screenshots__/msedge/mdc-text-body-small.png
Diff not rendered.
Binary file removed
BIN
-59.2 KB
...es/components/src/components/text/__screenshots__/msedge/mdc-text-heading-1.png
Diff not rendered.
Binary file removed
BIN
-46.1 KB
...es/components/src/components/text/__screenshots__/msedge/mdc-text-heading-2.png
Diff not rendered.
Binary file removed
BIN
-23.5 KB
...es/components/src/components/text/__screenshots__/msedge/mdc-text-heading-3.png
Diff not rendered.
Binary file removed
BIN
-19.8 KB
...es/components/src/components/text/__screenshots__/msedge/mdc-text-heading-4.png
Diff not rendered.
Binary file removed
BIN
-17.3 KB
...es/components/src/components/text/__screenshots__/msedge/mdc-text-heading-5.png
Diff not rendered.
Binary file removed
BIN
-14.2 KB
...es/components/src/components/text/__screenshots__/msedge/mdc-text-heading-6.png
Diff not rendered.
Binary file removed
BIN
-12 KB
...es/components/src/components/text/__screenshots__/msedge/mdc-text-heading-7.png
Diff not rendered.
Binary file added
BIN
+15.5 KB
...ents/src/components/text/__screenshots__/msedge/mdc-text-heading-large-bold.png
Oops, something went wrong.
Binary file added
BIN
+16.2 KB
...ts/src/components/text/__screenshots__/msedge/mdc-text-heading-large-medium.png
Oops, something went wrong.
Binary file added
BIN
+16.3 KB
...s/src/components/text/__screenshots__/msedge/mdc-text-heading-large-regular.png
Oops, something went wrong.
Binary file added
BIN
+11.9 KB
...ts/src/components/text/__screenshots__/msedge/mdc-text-heading-midsize-bold.png
Oops, something went wrong.
Binary file added
BIN
+12.3 KB
.../src/components/text/__screenshots__/msedge/mdc-text-heading-midsize-medium.png
Oops, something went wrong.
Binary file added
BIN
+12.2 KB
...src/components/text/__screenshots__/msedge/mdc-text-heading-midsize-regular.png
Oops, something went wrong.
Binary file added
BIN
+9.8 KB
...ents/src/components/text/__screenshots__/msedge/mdc-text-heading-small-bold.png
Oops, something went wrong.
Binary file added
BIN
+10.3 KB
...ts/src/components/text/__screenshots__/msedge/mdc-text-heading-small-medium.png
Oops, something went wrong.
Binary file added
BIN
+10.2 KB
...s/src/components/text/__screenshots__/msedge/mdc-text-heading-small-regular.png
Oops, something went wrong.
Binary file added
BIN
+19.8 KB
...nts/src/components/text/__screenshots__/msedge/mdc-text-heading-xlarge-bold.png
Oops, something went wrong.
Binary file added
BIN
+20.8 KB
...s/src/components/text/__screenshots__/msedge/mdc-text-heading-xlarge-medium.png
Oops, something went wrong.
Binary file added
BIN
+20.8 KB
.../src/components/text/__screenshots__/msedge/mdc-text-heading-xlarge-regular.png
Oops, something went wrong.
Binary file added
BIN
+26.5 KB
...ts/src/components/text/__screenshots__/msedge/mdc-text-headline-small-light.png
Oops, something went wrong.
Binary file added
BIN
+26.1 KB
.../src/components/text/__screenshots__/msedge/mdc-text-headline-small-regular.png
Oops, something went wrong.
Binary file removed
BIN
-8.32 KB
.../components/src/components/text/__screenshots__/msedge/mdc-text-image-title.png
Diff not rendered.
Binary file removed
BIN
-7.37 KB
packages/components/src/components/text/__screenshots__/msedge/mdc-text-label.png
Diff not rendered.
Binary file added
BIN
+83.1 KB
...ponents/src/components/text/__screenshots__/webkit/mdc-text-body-large-bold.png
Oops, something went wrong.
Binary file added
BIN
+82.7 KB
...components/text/__screenshots__/webkit/mdc-text-body-large-medium-underline.png
Oops, something went wrong.
Binary file added
BIN
+82.9 KB
...nents/src/components/text/__screenshots__/webkit/mdc-text-body-large-medium.png
Oops, something went wrong.
Binary file added
BIN
+82.9 KB
...omponents/text/__screenshots__/webkit/mdc-text-body-large-regular-underline.png
Oops, something went wrong.
Binary file added
BIN
+83.1 KB
...ents/src/components/text/__screenshots__/webkit/mdc-text-body-large-regular.png
Oops, something went wrong.
Binary file removed
BIN
-164 KB
...s/components/src/components/text/__screenshots__/webkit/mdc-text-body-large.png
Diff not rendered.
Binary file added
BIN
+67 KB
...nents/src/components/text/__screenshots__/webkit/mdc-text-body-midsize-bold.png
Oops, something went wrong.
Binary file added
BIN
+68.7 KB
...mponents/text/__screenshots__/webkit/mdc-text-body-midsize-medium-underline.png
Oops, something went wrong.
Binary file added
BIN
+68.8 KB
...nts/src/components/text/__screenshots__/webkit/mdc-text-body-midsize-medium.png
Oops, something went wrong.
Binary file added
BIN
+71.5 KB
...ponents/text/__screenshots__/webkit/mdc-text-body-midsize-regular-underline.png
Oops, something went wrong.
Binary file added
BIN
+71.8 KB
...ts/src/components/text/__screenshots__/webkit/mdc-text-body-midsize-regular.png
Oops, something went wrong.
Binary file removed
BIN
-125 KB
...components/src/components/text/__screenshots__/webkit/mdc-text-body-regular.png
Diff not rendered.
Binary file added
BIN
+56 KB
...ponents/src/components/text/__screenshots__/webkit/mdc-text-body-small-bold.png
Oops, something went wrong.
Binary file added
BIN
+50.4 KB
...components/text/__screenshots__/webkit/mdc-text-body-small-medium-underline.png
Oops, something went wrong.
Binary file added
BIN
+49.2 KB
...nents/src/components/text/__screenshots__/webkit/mdc-text-body-small-medium.png
Oops, something went wrong.
Binary file added
BIN
+51.5 KB
...omponents/text/__screenshots__/webkit/mdc-text-body-small-regular-underline.png
Oops, something went wrong.
Binary file added
BIN
+51.6 KB
...ents/src/components/text/__screenshots__/webkit/mdc-text-body-small-regular.png
Oops, something went wrong.
Binary file removed
BIN
-109 KB
...s/components/src/components/text/__screenshots__/webkit/mdc-text-body-small.png
Diff not rendered.
Binary file removed
BIN
-485 KB
...es/components/src/components/text/__screenshots__/webkit/mdc-text-heading-1.png
Diff not rendered.
Binary file removed
BIN
-419 KB
...es/components/src/components/text/__screenshots__/webkit/mdc-text-heading-2.png
Diff not rendered.
Binary file removed
BIN
-207 KB
...es/components/src/components/text/__screenshots__/webkit/mdc-text-heading-3.png
Diff not rendered.
Binary file removed
BIN
-181 KB
...es/components/src/components/text/__screenshots__/webkit/mdc-text-heading-4.png
Diff not rendered.
Binary file removed
BIN
-151 KB
...es/components/src/components/text/__screenshots__/webkit/mdc-text-heading-5.png
Diff not rendered.
Binary file removed
BIN
-154 KB
...es/components/src/components/text/__screenshots__/webkit/mdc-text-heading-6.png
Diff not rendered.
Binary file removed
BIN
-118 KB
...es/components/src/components/text/__screenshots__/webkit/mdc-text-heading-7.png
Diff not rendered.
Binary file added
BIN
+155 KB
...ents/src/components/text/__screenshots__/webkit/mdc-text-heading-large-bold.png
Oops, something went wrong.
Binary file added
BIN
+150 KB
...ts/src/components/text/__screenshots__/webkit/mdc-text-heading-large-medium.png
Oops, something went wrong.
Binary file added
BIN
+149 KB
...s/src/components/text/__screenshots__/webkit/mdc-text-heading-large-regular.png
Oops, something went wrong.
Binary file added
BIN
+116 KB
...ts/src/components/text/__screenshots__/webkit/mdc-text-heading-midsize-bold.png
Oops, something went wrong.
Binary file added
BIN
+117 KB
.../src/components/text/__screenshots__/webkit/mdc-text-heading-midsize-medium.png
Oops, something went wrong.
Binary file added
BIN
+116 KB
...src/components/text/__screenshots__/webkit/mdc-text-heading-midsize-regular.png
Oops, something went wrong.
Binary file added
BIN
+103 KB
...ents/src/components/text/__screenshots__/webkit/mdc-text-heading-small-bold.png
Oops, something went wrong.
Binary file added
BIN
+100 KB
...ts/src/components/text/__screenshots__/webkit/mdc-text-heading-small-medium.png
Oops, something went wrong.
Binary file added
BIN
+101 KB
...s/src/components/text/__screenshots__/webkit/mdc-text-heading-small-regular.png
Oops, something went wrong.
Binary file added
BIN
+183 KB
...nts/src/components/text/__screenshots__/webkit/mdc-text-heading-xlarge-bold.png
Oops, something went wrong.
Binary file added
BIN
+181 KB
...s/src/components/text/__screenshots__/webkit/mdc-text-heading-xlarge-medium.png
Oops, something went wrong.
Binary file added
BIN
+183 KB
.../src/components/text/__screenshots__/webkit/mdc-text-heading-xlarge-regular.png
Oops, something went wrong.
Binary file added
BIN
+233 KB
...ts/src/components/text/__screenshots__/webkit/mdc-text-headline-small-light.png
Oops, something went wrong.
Binary file added
BIN
+230 KB
.../src/components/text/__screenshots__/webkit/mdc-text-headline-small-regular.png
Oops, something went wrong.
Binary file removed
BIN
-82.6 KB
.../components/src/components/text/__screenshots__/webkit/mdc-text-image-title.png
Diff not rendered.
Binary file removed
BIN
-84.1 KB
packages/components/src/components/text/__screenshots__/webkit/mdc-text-label.png
Diff not rendered.
286 changes: 211 additions & 75 deletions
286
packages/components/src/components/text/fonts.styles.ts
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 |
---|---|---|
@@ -1,99 +1,235 @@ | ||
import { css } from 'lit'; | ||
|
||
// todo: change definition to tokens once available | ||
|
||
export const fontsStyles = css` | ||
:host([type="heading-1"]) { | ||
font-size: 7.5rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 125%; /* 9.375rem */ | ||
text-transform: capitalize; | ||
:host([type="headline-small-regular"])::part(text) { | ||
font-size: var(--mds-font-apps-headline-small-regular-font-size); | ||
font-weight: var(--mds-font-apps-headline-small-regular-font-weight); | ||
line-height: var(--mds-font-apps-headline-small-regular-line-height); | ||
text-decoration: var(--mds-font-apps-headline-small-regular-text-decoration); | ||
text-transform: var(--mds-font-apps-headline-small-regular-text-case); | ||
} | ||
:host([type="heading-2"]) { | ||
font-size: 6rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 125%; /* 7.5rem */ | ||
text-transform: capitalize; | ||
:host([type="headline-small-light"])::part(text) { | ||
font-size: var(--mds-font-apps-headline-small-light-font-size); | ||
font-weight: var(--mds-font-apps-headline-small-light-font-weight); | ||
line-height: var(--mds-font-apps-headline-small-light-line-height); | ||
text-decoration: var(--mds-font-apps-headline-small-light-text-decoration); | ||
text-transform: var(--mds-font-apps-headline-small-light-text-case); | ||
} | ||
:host([type="heading-3"]) { | ||
font-size: 3rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 125%; /* 3.75rem */ | ||
:host([type="heading-xlarge-bold"])::part(text) { | ||
font-size: var(--mds-font-apps-heading-xlarge-bold-font-size); | ||
font-weight: var(--mds-font-apps-heading-xlarge-bold-font-weight); | ||
line-height: var(--mds-font-apps-heading-xlarge-bold-line-height); | ||
text-decoration: var(--mds-font-apps-heading-xlarge-bold-text-decoration); | ||
text-transform: var(--mds-font-apps-heading-xlarge-bold-text-case); | ||
} | ||
:host([type="heading-4"]) { | ||
font-size: 2.5rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 125%; /* 3.125rem */ | ||
:host([type="heading-xlarge-medium"])::part(text) { | ||
font-size: var(--mds-font-apps-heading-xlarge-medium-font-size); | ||
font-weight: var(--mds-font-apps-heading-xlarge-medium-font-weight); | ||
line-height: var(--mds-font-apps-heading-xlarge-medium-line-height); | ||
text-decoration: var(--mds-font-apps-heading-xlarge-medium-text-decoration); | ||
text-transform: var(--mds-font-apps-heading-xlarge-medium-text-case); | ||
} | ||
:host([type="heading-5"]) { | ||
font-size: 2rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 125%; /* 2.5rem */ | ||
letter-spacing: 0.5rem; | ||
text-transform: uppercase; | ||
:host([type="heading-xlarge-regular"])::part(text) { | ||
font-size: var(--mds-font-apps-heading-xlarge-regular-font-size); | ||
font-weight: var(--mds-font-apps-heading-xlarge-regular-font-weight); | ||
line-height: var(--mds-font-apps-heading-xlarge-regular-line-height); | ||
text-decoration: var(--mds-font-apps-heading-xlarge-regular-text-decoration); | ||
text-transform: var(--mds-font-apps-heading-xlarge-regular-text-case); | ||
} | ||
:host([type="heading-6"]) { | ||
font-size: 1.75rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 3rem; /* 171.429% */ | ||
:host([type="heading-large-bold"])::part(text) { | ||
font-size: var(--mds-font-apps-heading-large-bold-font-size); | ||
font-weight: var(--mds-font-apps-heading-large-bold-font-weight); | ||
line-height: var(--mds-font-apps-heading-large-bold-line-height); | ||
text-decoration: var(--mds-font-apps-heading-large-bold-text-decoration); | ||
text-transform: var(--mds-font-apps-heading-large-bold-text-case); | ||
} | ||
:host([type="heading-7"]) { | ||
font-size: 1.5rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 140%; /* 2.1rem */ | ||
:host([type="heading-large-medium"])::part(text) { | ||
font-size: var(--mds-font-apps-heading-large-medium-font-size); | ||
font-weight: var(--mds-font-apps-heading-large-medium-font-weight); | ||
line-height: var(--mds-font-apps-heading-large-medium-line-height); | ||
text-decoration: var(--mds-font-apps-heading-large-medium-text-decoration); | ||
text-transform: var(--mds-font-apps-heading-large-medium-text-case); | ||
} | ||
:host([type="heading-large-regular"])::part(text) { | ||
font-size: var(--mds-font-apps-heading-large-regular-font-size); | ||
font-weight: var(--mds-font-apps-heading-large-regular-font-weight); | ||
line-height: var(--mds-font-apps-heading-large-regular-line-height); | ||
text-decoration: var(--mds-font-apps-heading-large-regular-text-decoration); | ||
text-transform: var(--mds-font-apps-heading-large-regular-text-case); | ||
} | ||
:host([type="body-large"]) { | ||
font-size: 2rem; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 150%; /* 3rem */ | ||
margin-block-end: 1.875em; /* paragraph spacing, 30px */ | ||
:host([type="heading-midsize-bold"])::part(text) { | ||
font-size: var(--mds-font-apps-heading-midsize-bold-font-size); | ||
font-weight: var(--mds-font-apps-heading-midsize-bold-font-weight); | ||
line-height: var(--mds-font-apps-heading-midsize-bold-line-height); | ||
text-decoration: var(--mds-font-apps-heading-midsize-bold-text-decoration); | ||
text-transform: var(--mds-font-apps-heading-midsize-bold-text-case); | ||
} | ||
:host([type="heading-midsize-medium"])::part(text) { | ||
font-size: var(--mds-font-apps-heading-midsize-medium-font-size); | ||
font-weight: var(--mds-font-apps-heading-midsize-medium-font-weight); | ||
line-height: var(--mds-font-apps-heading-midsize-medium-line-height); | ||
text-decoration: var(--mds-font-apps-heading-midsize-medium-text-decoration); | ||
text-transform: var(--mds-font-apps-heading-midsize-medium-text-case); | ||
} | ||
:host([type="heading-midsize-regular"])::part(text) { | ||
font-size: var(--mds-font-apps-heading-midsize-regular-font-size); | ||
font-weight: var(--mds-font-apps-heading-midsize-regular-font-weight); | ||
line-height: var(--mds-font-apps-heading-midsize-regular-line-height); | ||
text-decoration: var(--mds-font-apps-heading-midsize-regular-text-decoration); | ||
text-transform: var(--mds-font-apps-heading-midsize-regular-text-case); | ||
} | ||
:host([type="body-regular"]) { | ||
font-size: 1.5rem; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 150%; /* 2.25rem */ | ||
margin-block-end: 1.5em; /* paragraph spacing, 24px */ | ||
:host([type="heading-small-bold"])::part(text) { | ||
font-size: var(--mds-font-apps-heading-small-bold-font-size); | ||
font-weight: var(--mds-font-apps-heading-small-bold-font-weight); | ||
line-height: var(--mds-font-apps-heading-small-bold-line-height); | ||
text-decoration: var(--mds-font-apps-heading-small-bold-text-decoration); | ||
text-transform: var(--mds-font-apps-heading-small-bold-text-case); | ||
} | ||
:host([type="heading-small-medium"])::part(text) { | ||
font-size: var(--mds-font-apps-heading-small-medium-font-size); | ||
font-weight: var(--mds-font-apps-heading-small-medium-font-weight); | ||
line-height: var(--mds-font-apps-heading-small-medium-line-height); | ||
text-decoration: var(--mds-font-apps-heading-small-medium-text-decoration); | ||
text-transform: var(--mds-font-apps-heading-small-medium-text-case); | ||
} | ||
:host([type="heading-small-regular"])::part(text) { | ||
font-size: var(--mds-font-apps-heading-small-regular-font-size); | ||
font-weight: var(--mds-font-apps-heading-small-regular-font-weight); | ||
line-height: var(--mds-font-apps-heading-small-regular-line-height); | ||
text-decoration: var(--mds-font-apps-heading-small-regular-text-decoration); | ||
text-transform: var(--mds-font-apps-heading-small-regular-text-case); | ||
} | ||
:host([type="body-small"]) { | ||
font-size: 1.25rem; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 150%; /* 1.875rem */ | ||
margin-block-end: 0.125rem; /* paragraph spacing, 2px */ | ||
:host([type="body-large-bold"])::part(text) { | ||
font-size: var(--mds-font-apps-body-large-bold-font-size); | ||
font-weight: var(--mds-font-apps-body-large-bold-font-weight); | ||
line-height: var(--mds-font-apps-body-large-bold-line-height); | ||
text-decoration: var(--mds-font-apps-body-large-bold-text-decoration); | ||
text-transform: var(--mds-font-apps-body-large-bold-text-case); | ||
} | ||
:host([type="body-large-medium-underline"])::part(text) { | ||
font-size: var(--mds-font-apps-body-large-medium-underline-font-size); | ||
font-weight: var(--mds-font-apps-body-large-medium-underline-font-weight); | ||
line-height: var(--mds-font-apps-body-large-medium-underline-line-height); | ||
text-decoration: var(--mds-font-apps-body-large-medium-underline-text-decoration); | ||
text-transform: var(--mds-font-apps-body-large-medium-underline-text-case); | ||
} | ||
:host([type="body-large-medium"])::part(text) { | ||
font-size: var(--mds-font-apps-body-large-medium-font-size); | ||
font-weight: var(--mds-font-apps-body-large-medium-font-weight); | ||
line-height: var(--mds-font-apps-body-large-medium-line-height); | ||
text-decoration: var(--mds-font-apps-body-large-medium-text-decoration); | ||
text-transform: var(--mds-font-apps-body-large-medium-text-case); | ||
} | ||
:host([type="body-large-regular-underline"])::part(text) { | ||
font-size: var(--mds-font-apps-body-large-regular-underline-font-size); | ||
font-weight: var(--mds-font-apps-body-large-regular-underline-font-weight); | ||
line-height: var(--mds-font-apps-body-large-regular-underline-line-height); | ||
text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration); | ||
text-transform: var(--mds-font-apps-body-large-regular-underline-text-case); | ||
} | ||
:host([type="body-large-regular"])::part(text) { | ||
font-size: var(--mds-font-apps-body-large-regular-font-size); | ||
font-weight: var(--mds-font-apps-body-large-regular-font-weight); | ||
line-height: var(--mds-font-apps-body-large-regular-line-height); | ||
text-decoration: var(--mds-font-apps-body-large-regular-text-decoration); | ||
text-transform: var(--mds-font-apps-body-large-regular-text-case); | ||
} | ||
:host([type="image-title"]) { | ||
font-size: 1rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 150%; /* 1.5rem */ | ||
letter-spacing: 0.04rem; | ||
text-transform: uppercase; | ||
:host([type="body-midsize-bold"])::part(text) { | ||
font-size: var(--mds-font-apps-body-midsize-bold-font-size); | ||
font-weight: var(--mds-font-apps-body-midsize-bold-font-weight); | ||
line-height: var(--mds-font-apps-body-midsize-bold-line-height); | ||
text-decoration: var(--mds-font-apps-body-midsize-bold-text-decoration); | ||
text-transform: var(--mds-font-apps-body-midsize-bold-text-case); | ||
} | ||
:host([type="body-midsize-medium-underline"])::part(text) { | ||
font-size: var(--mds-font-apps-body-midsize-medium-underline-font-size); | ||
font-weight: var(--mds-font-apps-body-midsize-medium-underline-font-weight); | ||
line-height: var(--mds-font-apps-body-midsize-medium-underline-line-height); | ||
text-decoration: var(--mds-font-apps-body-midsize-medium-underline-text-decoration); | ||
text-transform: var(--mds-font-apps-body-midsize-medium-underline-text-case); | ||
} | ||
:host([type="body-midsize-medium"])::part(text) { | ||
font-size: var(--mds-font-apps-body-midsize-medium-font-size); | ||
font-weight: var(--mds-font-apps-body-midsize-medium-font-weight); | ||
line-height: var(--mds-font-apps-body-midsize-medium-line-height); | ||
text-decoration: var(--mds-font-apps-body-midsize-medium-text-decoration); | ||
text-transform: var(--mds-font-apps-body-midsize-medium-text-case); | ||
} | ||
:host([type="body-midsize-regular-underline"])::part(text) { | ||
font-size: var(--mds-font-apps-body-midsize-regular-underline-font-size); | ||
font-weight: var(--mds-font-apps-body-midsize-regular-underline-font-weight); | ||
line-height: var(--mds-font-apps-body-midsize-regular-underline-line-height); | ||
text-decoration: var(--mds-font-apps-body-midsize-regular-underline-text-decoration); | ||
text-transform: var(--mds-font-apps-body-midsize-regular-underline-text-case); | ||
} | ||
:host([type="body-midsize-regular"])::part(text) { | ||
font-size: var(--mds-font-apps-body-midsize-regular-font-size); | ||
font-weight: var(--mds-font-apps-body-midsize-regular-font-weight); | ||
line-height: var(--mds-font-apps-body-midsize-regular-line-height); | ||
text-decoration: var(--mds-font-apps-body-midsize-regular-text-decoration); | ||
text-transform: var(--mds-font-apps-body-midsize-regular-text-case); | ||
} | ||
:host([type="label"]) { | ||
font-size: 1rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 150%; /* 1.5rem */ | ||
letter-spacing: 0.02rem; | ||
:host([type="body-small-bold"])::part(text) { | ||
font-size: var(--mds-font-apps-body-small-bold-font-size); | ||
font-weight: var(--mds-font-apps-body-small-bold-font-weight); | ||
line-height: var(--mds-font-apps-body-small-bold-line-height); | ||
text-decoration: var(--mds-font-apps-body-small-bold-text-decoration); | ||
text-transform: var(--mds-font-apps-body-small-bold-text-case); | ||
} | ||
:host([type="body-small-medium-underline"])::part(text) { | ||
font-size: var(--mds-font-apps-body-small-medium-underline-font-size); | ||
font-weight: var(--mds-font-apps-body-small-medium-underline-font-weight); | ||
line-height: var(--mds-font-apps-body-small-medium-underline-line-height); | ||
text-decoration: var(--mds-font-apps-body-small-medium-underline-text-decoration); | ||
text-transform: var(--mds-font-apps-body-small-medium-underline-text-case); | ||
} | ||
:host([type="body-small-medium"])::part(text) { | ||
font-size: var(--mds-font-apps-body-small-medium-font-size); | ||
font-weight: var(--mds-font-apps-body-small-medium-font-weight); | ||
line-height: var(--mds-font-apps-body-small-medium-line-height); | ||
text-decoration: var(--mds-font-apps-body-small-medium-text-decoration); | ||
text-transform: var(--mds-font-apps-body-small-medium-text-case); | ||
} | ||
:host([type="body-small-regular-underline"])::part(text) { | ||
font-size: var(--mds-font-apps-body-small-regular-underline-font-size); | ||
font-weight: var(--mds-font-apps-body-small-regular-underline-font-weight); | ||
line-height: var(--mds-font-apps-body-small-regular-underline-line-height); | ||
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration); | ||
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case); | ||
} | ||
:host([type="body-small-regular"])::part(text) { | ||
font-size: var(--mds-font-apps-body-small-regular-font-size); | ||
font-weight: var(--mds-font-apps-body-small-regular-font-weight); | ||
line-height: var(--mds-font-apps-body-small-regular-line-height); | ||
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration); | ||
text-transform: var(--mds-font-apps-body-small-regular-text-case); | ||
} | ||
`; |
Oops, something went wrong.