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

Update LinkButton to use styling API; align with Link #1055

Merged
merged 1 commit into from
May 30, 2023

Conversation

lyzadanger
Copy link
Contributor

@lyzadanger lyzadanger commented May 26, 2023

Here's Friday's little cleanup effort!

LinkButton was out of sync with Link in terms of API and variants. This PR:

  • Updates LinkButton to support the styling API
  • Deprecates color in preference to variant (and removes the pre-existing, completely-unused variant options! None of our apps were using primary or secondary variants)
  • Restructures and cleans up pattern-library documentation

Fixes #1054
Part of #1030

image

inline?: boolean;
underline?: 'always' | 'hover' | 'none';
variant?: 'secondary' | 'primary';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing was using either of these!

@codecov
Copy link

codecov bot commented May 26, 2023

Codecov Report

Merging #1055 (4c0bc51) into main (d9709db) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main     #1055   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           53        53           
  Lines          735       741    +6     
  Branches       265       270    +5     
=========================================
+ Hits           735       741    +6     
Impacted Files Coverage Δ
src/components/navigation/LinkButton.tsx 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@acelaya acelaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@lyzadanger lyzadanger merged commit 9540377 into main May 30, 2023
@lyzadanger lyzadanger deleted the update-linkbutton branch May 30, 2023 12:17
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.

Update LinkButton with styling API props
2 participants