-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(tabs): match default spacing to spec #4487
fix(tabs): match default spacing to spec #4487
Conversation
Deploy preview for carbon-elements ready! Built with commit 39f817d |
Deploy preview for carbon-components-react ready! Built with commit 39f817d https://deploy-preview-4487--carbon-components-react.netlify.com |
Deploy preview for the-carbon-components ready! Built with commit 39f817d https://deploy-preview-4487--the-carbon-components.netlify.com |
3d2c6f4
to
ef4e7af
Compare
since we are shipping the tab content container it makes sense for us to ship accompanying styles to space out tab content according to spec |
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.
LGTM 👍 - Thanks @emyarod!
min-width: 100%; | ||
|
||
@include breakpoint('42rem') { | ||
min-width: 720px; | ||
} | ||
} | ||
|
||
.bx--tabs + div { |
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.
Would we want to keep this in but add a note to remove in v11? This seems like it could break certain layouts that may rely on this behavior currently.
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.
this should be demo only code, unless you are referring to something else?
ef4e7af
to
c9777a3
Compare
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.
React:
Default tabs
- The third tab has content text that jumps up, should be 16px down.
Fixed tabs
- We need to align the start of the content text vertically with the first tab text. Right now it is too far to the right
Vanilla:
Default and Fixed
-Placement looks correct, the content text just needs to be body-long-01
.
c9777a3
to
1478acb
Compare
f4afdb9
to
f9f6fb8
Compare
f9f6fb8
to
32a71d7
Compare
bump @laurenmrice if you have a chance to re-review |
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.
Looks great thank you ! 👍
Closes #4437
This PR modifies our documentation to add additional space between the tabs and tab content