Fix slideshow content container borders #1353
Merged
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.
Why are these changes introduced?
Fixes #1288
What approach did you take?
Slideshow section
For slideshow section image bocks, when the Show container on desktop setting is unchecked/disabled, the content container shows left and right borders. These borders show up when using global Content container > Border settings
Currently, in the
component.slideshow.css
, the following rule applies to the slideshow content container when the Grid layout setting is enabled:Wrapping the above in a media query fixes this issue:
Other considerations
As noted here: #1288 (comment), I initially thought removing the
slideshow-component.page-width .slideshow__text
rule entirely fromcomponent-slideshow.css
would fix the issue but I didn't account for left and right borders on mobile, which is being handled here:dawn/assets/base.css
Lines 2708 to 2711 in ad989e6
Testing steps/scenarios
Demo links
Checklist