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

Add tab variant to Tab and support styling API #1155

Merged
merged 1 commit into from
Jul 19, 2023
Merged

Conversation

lyzadanger
Copy link
Contributor

@lyzadanger lyzadanger commented Jul 19, 2023

This PR adds some support we pretty much know we'll need for the import/export project by adding a new variant to Tab (called tab) and extending Tab to support the styling API.

See the local Tabs pattern library page for details.

image

Part of #1141

Comment on lines +58 to +65
'font-semibold text-grey-7 rounded-t border border-transparent border-b-0':
variant === 'tab',
'aria-selected:text-color-text aria-selected:bg-white':
variant === 'tab',
'aria-selected:border aria-selected:border-grey-3 aria-selected:border-b-0':
variant === 'tab',
'enabled:hover:text-color-text disabled:text-grey-7/50':
variant === 'tab',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Some of this styling will almost certainly be adapted as we go in this project.

@codecov
Copy link

codecov bot commented Jul 19, 2023

Codecov Report

Merging #1155 (8e376d2) into main (b028ea0) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main     #1155   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           55        55           
  Lines          784       791    +7     
  Branches       298       304    +6     
=========================================
+ Hits           784       791    +7     
Impacted Files Coverage Δ
src/components/navigation/Tab.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 6207de1 into main Jul 19, 2023
@lyzadanger lyzadanger deleted the tab-variant branch July 19, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants