Skip to content
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

DP-35365: Fix image styles in rich text with text wrapping #1938

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
6 changes: 6 additions & 0 deletions packages/assets/scss/01-atoms/_figure.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ $figures-gutter: 20px;
margin: 10px $figures-gutter 10px $figures-gutter;
}

@media ($bp-x-small-max) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of adding a new media query, I wonder if there's any reasons of needing the previous one @media ($bp-x-small-min) to add the margins - the only thing I can think of is when the figure expands the full width on mobile and we want to remove the left-right margins.

&.ma__figure-image {
margin: 10px $figures-gutter 10px 0;
}
}

@media ($bp-small-min) {
// support pre-existing figure elements besides dataviz.

Expand Down