Skip to content
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

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

booc0mtaco
Copy link
Contributor

  • 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

Test Plan:

  • Wrote automated tests
  • CI tests / new tests are not applicable
  • Manually tested my changes, but I want to keep the details secret
  • Created and used an alpha publish
  • Manually tested my changes, and here are the details:

- 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
@booc0mtaco booc0mtaco requested a review from a team July 12, 2024 15:07
Copy link

size-limit report 📦

Path Size
components 88.65 KB (+0.05% 🔺)
styles 27.76 KB (+0.05% 🔺)

Copy link

codecov bot commented Jul 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.40%. Comparing base (3b66d67) to head (6ac94d7).

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.
📢 Have feedback on the report? Share it here.

@booc0mtaco booc0mtaco requested a review from jgao-czi July 12, 2024 15:12
}

&.link--size-xs {
font: var(--eds-theme-typography-body-xs);
font-weight: 500;

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?

Copy link
Contributor Author

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)

@booc0mtaco
Copy link
Contributor Author

Thanks @timzchang @jgao-czi :)

@booc0mtaco booc0mtaco merged commit 2e47271 into next Jul 12, 2024
10 checks passed
@booc0mtaco booc0mtaco deleted the aholloway/x-fix-link-font-handling branch July 12, 2024 23:39
@booc0mtaco booc0mtaco mentioned this pull request Jul 15, 2024
booc0mtaco added a commit that referenced this pull request Jul 15, 2024
## [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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants