-
Notifications
You must be signed in to change notification settings - Fork 31
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
Card full modifier #177
Card full modifier #177
Conversation
Awesome! Pulling down to have a look now - thanks! |
@@ -5,8 +5,7 @@ | |||
overflow: hidden; | |||
height: 100%; | |||
color: var(--nsw-text-dark); | |||
border-top-left-radius: var(--nsw-border-radius); | |||
border-top-right-radius: var(--nsw-border-radius); | |||
border-radius: var(--nsw-border-radius); |
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.
src/components/card/index.hbs
Outdated
{{#>_docs-example}} | ||
<div class="nsw-grid"> | ||
<div class="nsw-col nsw-col-lg-6"> | ||
{{>_card model.card-image-1 full=true}} |
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.
I didn't pick the modifier name "full", probably we can come with something easier to grasp, unless you're happy with that
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.
I'll tag in @amy-howard on this one, she might have a name in mind
5f0c838
to
4b295b1
Compare
Merging into feature branch for name change |
Adds card
nsw-card--full
modifier class, as per requirement in nsw.gov.au.Also fixes the border bottom radius for focus state in all the cards.
The card full modifier displays best if max 2 card are available, and it respects the other modifiers.
On mobile, they look exactly as regular cards.
NB: starterkit not updated!