-
Notifications
You must be signed in to change notification settings - Fork 2
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
[SAGE-780] SageGrid
column class fix
#1566
[SAGE-780] SageGrid
column class fix
#1566
Conversation
elsif !col.breakpoint.present? && !col.size.present? && grid_col_legacy(col) | ||
# or if a legacy individual breakpoint is provided | ||
grid_col_breakpoint_individual(col, column_classes) | ||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Providing a breakpoint
value without a size
constraint will output the plain sage-col
since a size
is required for these columns to be useful.
923a5f9
to
18f19c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks and works great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it! Nice work. Not a blocker, but I wonder if this could/should be a method on the Grid component itself rather than in a helper?
That's a great point, my primary goal was to decouple the conditionals from the markup, but creating a new helper is probably unnecessary. Since this was intended as a somewhat temporary patch until the 12-col grid situation is fleshed out, I'm inclined to wait to fold it in until we have a chance to refactor the component. |
18f19c6
to
537cc26
Compare
Description
SAGE-780
Addresses a bug in the 12-column grid when using Rails
SageGridCol
component by removing the duplicatesage-col
class when a responsive breakpoint is provided. In certain cases, this caused irregular sizing issues due to conflicting media queries.Most easily noticeable when the
lg
breakpoint is in use. For example, open the "Help & Feedback" modal in the KP sidebar, and note that thesage-col--lg-6
columns follow thesage-col-6
media query when resized.Screenshots
Testing in
sage-lib
.docs-section
)sage-col--md-4
)Testing in
kajabi-products
SageGridCol
componentRelated