-
Notifications
You must be signed in to change notification settings - Fork 23
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(select): change arrow trigger position to absolute #60
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4e0ac7d
fix(select): change arrow position to absolute
efux 5c2d885
fix(select): change test results
efux 3d2f847
fix(select): remove debug outputs
efux 892c4f8
Merge remote-tracking branch 'origin/master' into feature/business-se…
efux 1b45149
fix(select): change gray color to fit style guide
efux 94f6f65
fix(business/select): calculate 5k based on base values
efux 5c6274d
fix(select): change position of arrow when using native select
efux 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,21 @@ | |
@mixin selectBase { | ||
.sbb-select-trigger { | ||
@include inputfields; | ||
position: relative; | ||
cursor: pointer; | ||
display: flex; | ||
align-items: center; | ||
padding-right: $selectTriggerPaddingRight; | ||
padding-right: toPx($selectTriggerPaddingRight); | ||
|
||
@include publicOnly() { | ||
@include mq($from: desktop4k) { | ||
padding-right: toPx($selectTriggerPaddingRight * $scalingFactor4k); | ||
} | ||
|
||
@include mq($from: desktop5k) { | ||
padding-right: 92px; | ||
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. Usually the desktop5k variant is simply calculated with the $scalingFactor5k. Why is this not the case here? |
||
} | ||
} | ||
|
||
&[aria-expanded='true'] { | ||
@include autocompleteInputActive(); | ||
|
@@ -29,23 +40,45 @@ | |
} | ||
|
||
.sbb-select-arrow-wrapper { | ||
@include svgIconColor($sbbColorGrey); | ||
@include absoluteCenterY(); | ||
right: toPx($selectArrowRight); | ||
|
||
width: toPx($selectArrowWidthHeight); | ||
height: toPx($selectArrowWidthHeight); | ||
|
||
@include publicOnly() { | ||
@include svgIconColor($sbbColorGrey); | ||
|
||
@include mq($from: desktop4k) { | ||
right: toPx($selectArrowRight * $scalingFactor4k); | ||
width: toPx($selectArrowWidthHeight * $scalingFactor4k); | ||
height: toPx($selectArrowWidthHeight * $scalingFactor4k); | ||
} | ||
|
||
@include mq($from: desktop5k) { | ||
right: 28px; | ||
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. Same question as for padding-right. |
||
width: toPx($selectArrowWidthHeight * $scalingFactor5k); | ||
height: toPx($selectArrowWidthHeight * $scalingFactor5k); | ||
} | ||
} | ||
|
||
@include businessOnly() { | ||
@include svgIconColor($sbbColorGranite); | ||
} | ||
|
||
&-rotate { | ||
transform-origin: toPx($selectArrowWidthHeight / 2) toPx($selectArrowWidthHeight / 4); | ||
|
||
@include publicOnly() { | ||
@include mq($from: desktop4k) { | ||
transform-origin: toPx($selectArrowWidthHeight * $scalingFactor4k / 2) toPx($selectArrowWidthHeight * $scalingFactor4k / 4); | ||
} | ||
|
||
@include mq($from: desktop5k) { | ||
transform-origin: toPx($selectArrowWidthHeight * $scalingFactor5k / 2) toPx($selectArrowWidthHeight * $scalingFactor5k / 4); | ||
} | ||
} | ||
|
||
transform: rotate(180deg); | ||
} | ||
} | ||
|
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.
padding-right should also be applied for native select.