-
Notifications
You must be signed in to change notification settings - Fork 119
Fix Line appearing under selected tab at larger zoom #4122
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
Merged
Merged
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
9cb5ef6
feat(tokens): update border tokens related to tabs
PixeledCode bda03d8
feat(tabs): fix underline bug on trackpad zoom
PixeledCode 5845c7e
feat(tokens): add changesets
PixeledCode 2e2fef9
feat(Tabs): add changesets
PixeledCode c38f9d1
feat(tokens): update changesets
PixeledCode d1abb46
feat(tabs): fix build issue
PixeledCode a4ff8e7
feat(tabs): update changeset
PixeledCode 5b35600
feat(tabs): update typedocs
PixeledCode e58825d
feat(tabs): update tests
PixeledCode c0d919b
feat(tabs): update typedocs
PixeledCode 5df4afb
feat(tabs): update tokens
PixeledCode dff3ffb
feat(tabs): update tests
PixeledCode 0ed4745
feat(tabs): update token
PixeledCode 9f8ba21
feat(tabs): try different solution
PixeledCode c965dd1
feat(tabs): add different background for inverse
PixeledCode 4901848
feat(tabs): add changes from review
PixeledCode dafcaf5
feat(tabs): update tests
PixeledCode 89d143b
feat(tabs): implement changes from review
PixeledCode 20fe9af
feat(tabs): update token name
PixeledCode 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@twilio-paste/design-tokens": minor | ||
"@twilio-paste/core": minor | ||
--- | ||
|
||
[Tokens]: Add new tokens related to box shadow of Tabs component |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@twilio-paste/code-block": patch | ||
"@twilio-paste/in-page-navigation": patch | ||
"@twilio-paste/tabs": patch | ||
"@twilio-paste/core": patch | ||
--- | ||
|
||
[Tabs]: Fix underline bug for trackpad zoom | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,17 +107,26 @@ const HorizontalTabList: React.FC<React.PropsWithChildren<{ variant?: Variants; | |
<Box as={StyledTabList as any} ref={scrollableRef} flexGrow={1} element={`${element}_SCROLL_WRAPPER`}> | ||
<Box | ||
ref={ref} | ||
position="relative" | ||
whiteSpace="nowrap" | ||
element={element} | ||
display="flex" | ||
borderBottomStyle="solid" | ||
borderBottomWidth="borderWidth10" | ||
columnGap="space20" | ||
borderBottomColor={isInverse ? "colorBorderInverseWeaker" : "colorBorderWeak"} | ||
// @ts-expect-error 1px is not available in tokens | ||
paddingTop="1px" | ||
// marginBottom="1px" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. reminder: remove comment |
||
boxShadow={isInverse ? "shadowBorderBottomInverseWeaker" : "shadowBorderBottomWeak"} | ||
// Scrollable element needs borderto stretch to full contianer width. Non scrollable needs to stretch border to parent width. | ||
width={elementOutOBoundsRight || elementOutOBoundsLeft ? "max-content" : "auto"} | ||
> | ||
{children} | ||
<Box | ||
position="absolute" | ||
width="100%" | ||
height="1px" | ||
backgroundColor={isInverse ? "colorBackgroundInverse" : "colorBackgroundBody"} | ||
bottom="-1px" | ||
/> | ||
</Box> | ||
</Box> | ||
<OverflowButton | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
suggestion: split up these changesets up per package (preferred) or add the other package names to the prefix (
[Tabs]
part)