Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Conversation

jesstelford
Copy link
Contributor

@jesstelford jesstelford commented Aug 15, 2023

Completes #9962

Storybook.

NOTE: There's some existing layout jank in <ResourceList> that I've fixed separately in #10056

@jesstelford jesstelford linked an issue Aug 15, 2023 that may be closed by this pull request
@jesstelford jesstelford force-pushed the resource-list-se23-cleanup branch from 5bb9000 to b6442b7 Compare August 15, 2023 06:52
border-top: var(--p-border-width-1) solid var(--p-color-border-subdued);

#{$se23} & {
border-top: none;
Copy link
Contributor Author

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 the border-top above before item-separator sets a new border-top... ie; We want item-separator's border-top to win in SE23, so removing the pre-uplift one means we can remove the reset also.

// 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;
align-self: flex-start;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The specificity of this @media #{$p-breakpoints-sm-up} matches the #{$se23} & below, but #{$se23} & wins because it comes last. Therefore, align-self: flex-start never gets applied and so can now be deleted 👍


// 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;
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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 flex rules set on this element, so it's safe to remove this. (Looks like it might have been a refactor hold-over from when Bulk Editor was introduced).

@jesstelford jesstelford force-pushed the resource-list-se23-cleanup branch from b6442b7 to 4e00067 Compare August 16, 2023 01:52
@jesstelford jesstelford merged commit 106b2f6 into next Aug 16, 2023
@jesstelford jesstelford deleted the resource-list-se23-cleanup branch August 16, 2023 01:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ResourceList] Consolidate se23 logic and styles
3 participants