-
Notifications
You must be signed in to change notification settings - Fork 335
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
Add text-align
override classes
#2339
Conversation
3dfe3ba
to
0547ab2
Compare
Hmm, I see what you're saying about the examples being odd, maybe it would be more useful to show examples using them to align text in a table? |
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.
Changes make sense to me – thanks @hannalaakso! Agree with Laurence that it'd be useful to have examples that show how the classes work with tables – especially as that's the original use case that was identified.
Personally not sure how important it is to have the panel example – I'd be happy with just text overridden, even though the 'natural' alignment would be left anyway. You can still use dev tools to check that the alignment is coming explicitly from the override.
0547ab2
to
bd29c22
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 great! I appreciate the table examples :)
Add guidance for newly-added text override classes in Frontend: alphagov/govuk-frontend#2339
Add guidance for newly-added text override classes in Frontend: alphagov/govuk-frontend#2339 Put override classes into grey code boxes Correct 'centre' in class name
text align
override classes
text align
override classestext-align
override classes
This PR:
text-align
property toleft
,right
orcenter
.The review app example used for
govuk-!-text-align-left
is a bit odd, feel free to suggest a better one (this would also be useful for when we add an example to the Design System guidance).Related: alphagov/govuk-design-system#1863
Fixes #1824