-
Notifications
You must be signed in to change notification settings - Fork 159
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
[dds-tabs-extended-media] Add a story for mixed tabs content to highlight grid issues #10880
Conversation
Deploy preview created for package Built with commit: dc31c8a94a9a1d59c602ccbcd9d5d9b91605df08 |
Deploy preview created for package Built with commit: dc31c8a94a9a1d59c602ccbcd9d5d9b91605df08 |
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.
it looks like there is a syntax error? missing a closing brace
packages/styles/scss/components/tabs-extended/_tabs-extended.scss
Outdated
Show resolved
Hide resolved
Deploy preview created for package Built with commit: dc31c8a94a9a1d59c602ccbcd9d5d9b91605df08 |
Deploy preview created for package Built with commit: dc31c8a94a9a1d59c602ccbcd9d5d9b91605df08 |
I've brought over the "Tabs extended - with media / With Mixed Content" story from @jkaeser 's PR (#10353) here. There are a few things that we can observe now: 1. Issue reported in #10298 has been resolved by recent changes. The original issue, is no longer present, none of the contents are hanging in the gutter. All of the tab contents are getting the default padding that comes from Carbon web component styles. These styles used to be overidden for the
The change effectively acheived what @oliviaflory was calling for in this comment on the original issue. Although the original specific issue is resolved, we still have the larger issue @oliviaflory pointed out where some tab contents have magin / padding that interfere with us acheiving a clean inline grid layout.
In the original issue, @oliviaflory noted that Content item horizontal had padding to fit well within tab contents. Now that the tab contents container carries the right padding, tabs with content item horizontal have too much overall padding and are now mis-aligned. See screenshot taken from Canary:
When you have mixed content in the tabs, the tab contents have variable width and switching between the tabs, expands and contracts the overall component. You don't notice this with the existing story examples b/c the tab contents are homogenous (see below from deploy preview). This is b/c of some .tabs dds-tabs-extended-media::part(tabs-extended) {
width: 100%;
} I think we can mitigate this issue by reserving some of the Here is the bug from deploy preview: Monosnap.screencast.2023-09-29.12-48-13.mp4 |
Discussed with @jkaeser and @marcelojcs. Here's a proposal for how to move this forward:
|
Related Ticket(s)
Jira ADCMS-3155
#10298
Description
The linked issue here reflects a broader issue wherein inline padding for tab / accordion contents varies in such a way that it can hang in the grid gutter, or even indent too far.
This PR adds a story under "Tabs extended - with media" with a range of mixed contents, reflecting those which are commonly used in AEM specfically, but also serve as a good general sample. This was based off a Figma mockup of the various allowed components within "Tabs extended - with media" on AEM.
Changelog
New
Changed
<dds-tabs-extended-media>
shadow DOM.