-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix(Link): apply font weight to standalone sizes #2015
Conversation
- fix handling of size so it isn't applied where it can't be used - add assert for using size with context=inline - update tests and snapshots
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #2015 +/- ##
=======================================
Coverage 97.40% 97.40%
=======================================
Files 109 109
Lines 2578 2579 +1
Branches 647 647
=======================================
+ Hits 2511 2512 +1
Misses 65 65
Partials 2 2 ☔ View full report in Codecov by Sentry. |
} | ||
|
||
&.link--size-xs { | ||
font: var(--eds-theme-typography-body-xs); | ||
font-weight: 500; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh just so 500 is the expected font size for Links?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
500 is the weight for each link size. We have to add them here b/c font:
will try to set it to 400 which is what we saw. later this year when we revisit the typography tokens, we won't need this anymore (will be transparent to you all when that happens)
Thanks @timzchang @jgao-czi :) |
## [15.1.0](v15.0.1...v15.1.0) (2024-07-15) [Storybook](https://61313967cde49b003ae2a860-qztphlqyid.chromatic.com/) ### Features * add runtime warning/errors to components ([#2007](#2007)) ([661130b](661130b)) * **InputField:** add show/hide button for password field type ([#2006](#2006)) ([52d9ca0](52d9ca0)) * **Modal:** add height property to modal API ([#2011](#2011)) ([8d0c68f](8d0c68f)) ### Bug Fixes * **Icon:** update pencil icon to latest design ([#2016](#2016)) ([cb8d1a7](cb8d1a7)) * **Link:** apply font weight to standalone sizes ([#2015](#2015)) ([2e47271](2e47271)) * **Select:** expose generic types to allow by to pass type checks ([#2008](#2008)) ([421c91b](421c91b))
Test Plan: