-
Notifications
You must be signed in to change notification settings - Fork 25
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
Columns block #65
Columns block #65
Conversation
Hello, I'm Franklin Bot and I will run some test suites that validate the page speed.
|
|
|
blocks/v2-columns/v2-columns.css
Outdated
align-items: center; | ||
} | ||
|
||
.v2-columns .v2-columns-image, |
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.
Avoid unnecessary specificity, for example this can be changed to: .v2-columns-image, .v2-columns-content
Check all the document ;)
blocks/v2-columns/v2-columns.css
Outdated
margin: 0; | ||
} | ||
|
||
.v2-columns .v2-columns-content h1.v2-columns-content__headline { |
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.
Avoid using tags h1
, p
in CSS as much as possible.
What will happen if the editor decides to use h2
instead of h1
? The styles won't be applied. But if you just use the class, any tag containing the class will be styled.
|
|
|
|
|
|
you're right... the class is not necessary. I also changed the styling to the buttons so that if there are more they get a little margin |
|
|
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.
In mobile, I'm not sure about centring the items while other components will be left aligned and using 100% of the viewport width. @cogniSyb what should we do?
In desktop, the width of the column is not the same as the rest of the components. They should be aligned.
@cogniSyb @Lakshmishri should the order of the items in the columns be the same always in mobile? I mean, image + text? Currently, depending on how they are introduced by the editor, we show image + text or text + image, should we align them both in mobile or not?
|
I think we should do the same as the testimonial block: text, then image |
|
done |
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.
|
|
Fix #41
Test URLs: