-
Notifications
You must be signed in to change notification settings - Fork 77
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(tab-title): tabs center when set to layout='center'
#7026
Merged
Elijbet
merged 13 commits into
master
from
elijbet/7025-fix-tab-title-regression-center-layout
May 26, 2023
Merged
Changes from 4 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3d9bb3b
fix(tab-title): tabs center when set to layout='center'
Elijbet 9b1f151
Merge branch 'master' into elijbet/7025-fix-tab-title-regression-cent…
Elijbet 11758a0
additional preconfigured stories: centeredClosable and centeredBorder…
Elijbet 18f63c0
add more variations on tab-title to catch andy possible padding issues
Elijbet 92966a4
centering tab-title and close button within the tab
Elijbet 4664adb
Merge branch 'master' into elijbet/7025-fix-tab-title-regression-cent…
Elijbet d0b914d
Merge branch 'master' into elijbet/7025-fix-tab-title-regression-cent…
Elijbet 7c36006
center the text visually and not affected by the x button so as to av…
Elijbet 400201a
apply to layout center only
Elijbet 006dff3
Merge branch 'master' into elijbet/7025-fix-tab-title-regression-cent…
Elijbet 704ff62
Merge branch 'master' into elijbet/7025-fix-tab-title-regression-cent…
Elijbet de47d0f
ensure correct offset so adding/removing x button does not move the t…
Elijbet e2d3a7b
fill in missing scale s bordered closable centered
Elijbet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
given that there's no difference between
margin: auto
and@apply m-auto
I'd recommend usingmargin: auto
it's more readableThere 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.
Since we're using tailwind for now, it makes sense to stick to tailwind classes if they are available, for consistency. This is what we've been doing so far. Also, overlapping uses of tailwind and regular css props might create oversight doubling use of both by accident.
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.
Agreed, lets keep tailwind for now for consistency. Hopefully we can remove tailwind in the future.