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

feat(splash-page): Column display whith a low amout of items, fixing EU styles - FRONT-4662 #3687

Merged
merged 11 commits into from
Oct 29, 2024

Conversation

planctus
Copy link
Collaborator

No description provided.

Copy link

github-actions bot commented Oct 22, 2024

@github-actions github-actions bot temporarily deployed to pull request October 22, 2024 10:21 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 22, 2024 11:11 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 25, 2024 11:37 Inactive
@planctus planctus changed the title feat(splash-page): Column display - FRONT-4662 feat(splash-page): Column display whith a low amout of items - FRONT-4662 Oct 25, 2024
@planctus planctus marked this pull request as ready for review October 25, 2024 11:47
@github-actions github-actions bot temporarily deployed to pull request October 25, 2024 11:54 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 08:24 Inactive
@planctus planctus changed the title feat(splash-page): Column display whith a low amout of items - FRONT-4662 feat(splash-page): Column display whith a low amout of items, fixing EU styles - FRONT-4662 Oct 28, 2024
@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 08:47 Inactive
@@ -215,7 +218,28 @@ $language-list: null !default;
}

.ecl-splash-page__language-category .ecl-splash-page__language-list {
column-count: 3;
display: grid;
Copy link
Contributor

Choose a reason for hiding this comment

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

with this change, the order of elements is not the same anymore. I don't know if that will be an issue, but I recall that the order was quite important before (also now it is different between splash page and language list)
image
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

mmh..right, so i reverted the styles for the standard use case of "more than two european languages" and the order is back to what it was before, but this has a small drawback, with css columns, when we have four items, we don't get three columns but two. We could handle also this as a special case, do you think it would be needed..? :)

Copy link
Contributor

Choose a reason for hiding this comment

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

The "four items in the first column" case correspond exactly to the screenshot in the ticket, so I assume that it would be quite visible.
My proposal here would be to extend the logic up to 4 items (after that it seems to be fine). Also that would be easier to name the classes based on the number of columns instead of the number of item. For instance we could have ecl-splash-page__language-category--1-col, ecl-splash-page__language-category--2-col and ecl-splash-page__language-category--3-col, and we apply it manually. That way we would reuse the classes for 2 and 4 items.
That's what is done already in the site header language list

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

mmh..i can rename the selectors, but the reality is that we are not dealing with the number of columns but really the number of items, ecl-splash-page__language-category--3-col for instance would be confusing, we would use that to force this single use case of 4 items, for the rest three columns would instead be the default layout and there is no other "two columns layout" other than the one we define for two items, so to me it's actually clearer using the current selectors defined.

@github-actions github-actions bot temporarily deployed to pull request October 29, 2024 09:05 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 29, 2024 11:29 Inactive
@emeryro emeryro merged commit fe9546c into v4-dev Oct 29, 2024
7 checks passed
@emeryro emeryro deleted the FRONT-4662-Splash-page-cols branch October 29, 2024 14:38
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