-
Notifications
You must be signed in to change notification settings - Fork 75
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
feat(accordion-item): stretch slotted actions to fill its height #9250
base: main
Are you sure you want to change the base?
Conversation
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.
comments!
@@ -192,6 +192,10 @@ | |||
@apply flex items-center; | |||
} | |||
|
|||
slot[name="actions-start"] { | |||
block-size: 100%; | |||
} |
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.
Is this working @josercarcamo? Do we need some new screenshot tests to account for these changes?
I would have expected either align-items:stretch
or align-self:stretch
needs to be used to stretch the items by either using the ::slotted
selector or some element within the shadow DOM of the component.
Something like:
calcite-design-system/packages/calcite-components/src/components/list-item/list-item.scss
Line 78 in b069284
items-stretch |
or
calcite-design-system/packages/calcite-components/src/components/list-item/list-item.scss
Lines 190 to 193 in b069284
calcite-action, | |
calcite-handle { | |
@apply self-stretch; | |
} |
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.
Yes, it is working, at least with manual testing. I tried the "align-items: stretch" but it didn't work in this case. I actually tried to use the solution in alert.scss as shown below, but it didn't work.
.actions-end { @apply flex self-stretch; }
EDIT: Actually, your suggestion led me to a simpler solution. Testing and will push soon.
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.
I'm just wondering why this is doing anything. A slot element is just a placeholder and really isn't an element that needs to be styled.
…m:Esri/calcite-design-system into josercarcamo/6565-stretch-slotted-actions
This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions. |
How's this one going @josercarcamo? |
@driskull as we discussed on teams, I'll pick this up when the September release nears or I'll try to squeeze it in during down time in some other release. |
This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions. |
Related Issue: #6565
Summary
Made the height of the action item 100% so that it fills its available height.