-
Notifications
You must be signed in to change notification settings - Fork 9
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
Build Beta banner component and modal #266
Build Beta banner component and modal #266
Conversation
|
|
|
|
|
|
|
|
|
|
|
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.
Some comments on CSS organisation when using BEM
src/Modal.scss
Outdated
@@ -18,22 +18,34 @@ | |||
|
|||
.modal__header { |
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.
you shouldn't need these indented in modal__content, as they should stand alone (in BEM)
src/Modal.scss
Outdated
} | ||
} | ||
|
||
label { | ||
.modal__heading { |
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.
as above
src/Modal.scss
Outdated
font-size: var(--font-size-u-2) | ||
} | ||
|
||
.modal__subheading { |
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.
as above
src/Modal.scss
Outdated
font-weight: var(--font-weight-bold); | ||
} | ||
|
||
.modal__text { |
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.
as above
align-items: center; | ||
padding: var(--spacing-half) var(--spacing-2); | ||
|
||
&__message { |
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.
for elements, they should be stand-alone, see modal
padding: var(--spacing-half) 0 | ||
} | ||
|
||
&__link { |
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.
as above
text-decoration: underline; | ||
} | ||
|
||
&__close-button { |
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.
as above
background-color: $editor-turquoise-tint-50; | ||
color: $editor-black; | ||
|
||
&__icon { |
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.
as above
|
|
What's Changed?
Screenshots
Banner
Modal
closes #256