This repository was archived by the owner on Sep 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[ResourceList] Make se23 styles the default #10055
Merged
Merged
Changes from all commits
Commits
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 |
---|---|---|
|
@@ -16,27 +16,10 @@ $item-wrapper-loading-height: 64px; | |
} | ||
|
||
.FiltersWrapper { | ||
padding: var(--p-space-3) var(--p-space-3) var(--p-space-4); | ||
|
||
@media #{$p-breakpoints-sm-up} { | ||
padding: var(--p-space-4); | ||
} | ||
|
||
#{$se23} & { | ||
padding: var(--p-space-3); | ||
|
||
@media #{$p-breakpoints-sm-up} { | ||
padding: var(--p-space-3); | ||
} | ||
} | ||
padding: var(--p-space-3); | ||
|
||
+ .ResourceList { | ||
border-top: var(--p-border-width-1) solid var(--p-color-border-subdued); | ||
|
||
#{$se23} & { | ||
border-top: none; | ||
@include item-separator; | ||
} | ||
@include item-separator; | ||
} | ||
} | ||
|
||
|
@@ -49,12 +32,7 @@ $item-wrapper-loading-height: 64px; | |
border-top-right-radius: var(--p-border-radius-2); | ||
|
||
+ .ResourceList { | ||
border-top: var(--p-border-width-1) solid var(--p-color-border-subdued); | ||
|
||
#{$se23} & { | ||
border-top: none; | ||
@include item-separator; | ||
} | ||
@include item-separator; | ||
} | ||
} | ||
|
||
|
@@ -77,55 +55,41 @@ $item-wrapper-loading-height: 64px; | |
.HeaderWrapper { | ||
position: relative; | ||
display: flex; | ||
align-items: flex-start; | ||
width: 100%; | ||
min-height: resource-list(header-min-height); | ||
padding: calc(var(--p-space-3) - var(--p-space-05)) var(--p-space-5); | ||
background-color: var(--p-color-bg); | ||
border-radius: var(--p-border-radius-2); | ||
#{$se23} & { | ||
// This container conditionally includes a Select component for sorting | ||
// It's 32px above md-up and 36px below | ||
// This hardcoded min-height is to ensure the Select has uniform padding when it's 36px high | ||
min-height: 52px; | ||
align-items: center; | ||
padding: var(--p-space-2) var(--p-space-3); | ||
// We reduce the min-height here to account for the Select shrinking to 32px at this breakpoint. | ||
@media #{$p-breakpoints-md-up} { | ||
min-height: 48px; | ||
} | ||
// This container conditionally includes a Select component for sorting | ||
// It's 32px above md-up and 36px below | ||
// This hardcoded min-height is to ensure the Select has uniform padding when it's 36px high | ||
min-height: 52px; | ||
align-items: center; | ||
padding: var(--p-space-2) var(--p-space-3); | ||
// We reduce the min-height here to account for the Select shrinking to 32px at this breakpoint. | ||
@media #{$p-breakpoints-md-up} { | ||
min-height: 48px; | ||
} | ||
} | ||
|
||
.HeaderWrapper-isSticky { | ||
box-shadow: var(--p-shadow-md); | ||
|
||
#{$se23} & { | ||
box-shadow: var(--p-shadow-xs); | ||
border-radius: 0; | ||
} | ||
box-shadow: var(--p-shadow-xs); | ||
border-radius: 0; | ||
} | ||
|
||
.HeaderContentWrapper { | ||
position: absolute; | ||
// stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY | ||
z-index: resource-list(content-wrapper-stacking-order); | ||
right: var(--p-space-5); | ||
left: var(--p-space-5); | ||
right: var(--p-space-3); | ||
left: var(--p-space-3); | ||
// Regardless of the variable height of the content | ||
// we just want it to be center aligned. | ||
top: 0; | ||
bottom: 0; | ||
display: flex; | ||
min-height: resource-list(header-content-min-height); | ||
opacity: 1; | ||
transition: opacity var(--p-motion-ease) var(--p-motion-duration-200); | ||
|
||
#{$se23} & { | ||
right: var(--p-space-3); | ||
left: var(--p-space-3); | ||
// Regardless of the variable height of the content | ||
// we just want it to be center aligned. | ||
top: 0; | ||
bottom: 0; | ||
align-items: center; | ||
} | ||
align-items: center; | ||
|
||
.HeaderWrapper-inSelectMode & { | ||
opacity: 0; | ||
|
@@ -222,33 +186,23 @@ $item-wrapper-loading-height: 64px; | |
z-index: resource-list(bulk-actions-wrapper-stacking-order); | ||
width: 100%; | ||
|
||
// se23: This is the initial value of flex, is there something else that mutates this in other components? | ||
@media #{$p-breakpoints-sm-up} { | ||
flex: 0 1 auto; | ||
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. As per the above comment; this is the default. There's no other |
||
align-self: flex-start; | ||
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. The specificity of this |
||
} | ||
|
||
#{$se23} & { | ||
/* | ||
We do not want to worry about setting the height and width explicitly. | ||
We want to inherits the height and width of its child (in this case the SelectAllActions component). | ||
/* | ||
We do not want to worry about setting the height and width explicitly. | ||
We want to inherits the height and width of its child (in this case the SelectAllActions component). | ||
|
||
We do this using flexbox because "the cross size of each flex container is the minimum size necessary to contain the flex items" as per the spec. | ||
https://www.w3.org/TR/css-flexbox-1/#flex-lines | ||
*/ | ||
display: flex; | ||
align-self: auto; | ||
} | ||
We do this using flexbox because "the cross size of each flex container is the minimum size necessary to contain the flex items" as per the spec. | ||
https://www.w3.org/TR/css-flexbox-1/#flex-lines | ||
*/ | ||
display: flex; | ||
align-self: auto; | ||
} | ||
|
||
.CheckableButtonWrapper { | ||
display: none; | ||
|
||
#{$se23} & { | ||
// Checkable button has no opinion on its height, so we just fill the | ||
// container | ||
height: 100%; | ||
} | ||
// Checkable button has no opinion on its height, so we just fill the | ||
// container | ||
height: 100%; | ||
|
||
@media #{$p-breakpoints-sm-up} { | ||
flex: 1; | ||
|
@@ -303,12 +257,7 @@ $item-wrapper-loading-height: 64px; | |
max-width: 100%; | ||
|
||
+ .ItemWrapper { | ||
border-top: var(--p-border-width-1) solid var(--p-color-border-subdued); | ||
|
||
#{$se23} & { | ||
border-top: none; | ||
@include item-separator; | ||
} | ||
@include item-separator; | ||
} | ||
} | ||
|
||
|
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.
This
border-top: none;
was to reset theborder-top
above beforeitem-separator
sets a newborder-top
... ie; We wantitem-separator
'sborder-top
to win in SE23, so removing the pre-uplift one means we can remove the reset also.