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

fix(list-illustration): fix display issue - FRONT-3997 #2909

Merged
merged 2 commits into from
Jun 15, 2023

Conversation

emeryro
Copy link
Contributor

@emeryro emeryro commented Jun 15, 2023

fix width overlay issue on desktop

@github-actions
Copy link

github-actions bot commented Jun 15, 2023

@github-actions github-actions bot temporarily deployed to pull request June 15, 2023 07:04 Inactive
@emeryro emeryro marked this pull request as ready for review June 15, 2023 07:06
@emeryro emeryro requested a review from a team June 15, 2023 07:06
@@ -185,6 +185,14 @@ $_icon_color: null !default;
}
}

@include breakpoints.up('m') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

but why do we have this css?

.ecl-list-illustration--zebra {
    -webkit-margin-start: -50vw;
    left: 50%;
    margin-inline-start: -50vw;
    position: relative;
    width: 100vw;
}

what is this for? The proposed change fixes the main issue with our demos, but still it feels we shouldn't force the element to take full width even in mobile and tablets, potentially we could be doing this still in a layout with columns, for instance, and in any case it's not really clear what is that we want to achieve with that.

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 was a request from COMM, to have the zebra list look less like cards when on mobile...
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but if you think that it would be too dangerous to keep it, we can put it away, at least for now

Copy link
Collaborator

Choose a reason for hiding this comment

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

did not really get the "comparison" with cards, but anyway, like this is surely safer, if we limit it to the mobile breakpoint.
Just to understand, this is done to ensure that the grey background of the zebra would cover the full width of the viewport regardless of a container that could set a padding, basically.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes basically this is to have no white padding around the grey area, so it looks more like a vertical list of items

@github-actions github-actions bot temporarily deployed to pull request June 15, 2023 07:58 Inactive
@planctus planctus removed the Question label Jun 15, 2023
@planctus planctus merged commit 9a74790 into v3-dev Jun 15, 2023
@planctus planctus deleted the FRONT-3997-list-illustration-zebra branch June 15, 2023 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants