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

Rename grid desktop class for consistency #1414

Merged
merged 3 commits into from
Mar 2, 2022
Merged

Conversation

sofiamatulis
Copy link
Contributor

@sofiamatulis sofiamatulis commented Feb 25, 2022

PR Summary:

Updated all grid--full-width classes to be named grid--{{ section.settings.columns_desktop }}-col-desktop. Desktop grid settings should still work when 1 column is selected

Why are these changes introduced?

For better consistency in class naming on desktop and mobile and less if statements and lines of code

What approach did you take?

Updated the naming when the column selection is of 1 for desktop

Testing steps/scenarios
Test all of these sections with 1 column on desktop (grid setting):

  • Collection list
  • Featured blog
  • Feat collection
  • Main collection
  • Search
  • Multicolumn
  • Prod rec

Demo links

Checklist

sections/main-collection-product-grid.liquid Outdated Show resolved Hide resolved
assets/base.css Outdated Show resolved Hide resolved
@ghost ghost added the cla-needed label Feb 25, 2022
Copy link
Contributor

@kmeleta kmeleta left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@ludoboludo ludoboludo left a comment

Choose a reason for hiding this comment

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

Looks good 👍

Left a comment but that's not something to do with the scope of this PR 🙂

sections/multicolumn.liquid Show resolved Hide resolved
@sofiamatulis sofiamatulis moved this from To be triaged to In progress in Dawn: Iterations Roadmap Mar 2, 2022
@sofiamatulis sofiamatulis merged commit 38543f9 into main Mar 2, 2022
Dawn: Iterations Roadmap automation moved this from In progress to Done Mar 2, 2022
@sofiamatulis sofiamatulis deleted the grid-rename-desktop branch March 2, 2022 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants