-
Notifications
You must be signed in to change notification settings - Fork 20
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 ability to brand top left header #281
Add ability to brand top left header #281
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.
Overall looks pretty good.
Should we get some tests around this stuff?
Got an issue with the icons in the buttons, https://deploy-preview-281--romantic-khorana-d856b1.netlify.com/ui-kit/button.
@grahamhency I added tests for the GoConfigService and fixed the issue with the buttons you mentioned. |
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.
Hey @jaredami, I think we can simplify this icon issue further. Check my other comment.
@@ -32,21 +32,21 @@ $icon-sizes: (small: 1rem, medium: 1.5rem, large: 2rem); | |||
} | |||
|
|||
.go-icon--dark { | |||
color: $theme-dark-color; | |||
color: $theme-light-color; |
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.
@jaredami I think instead of changing this. We can just remove the [iconModifier]
being passed to the go-icon
by the go-button
. See line 18 in go-button.component.html
. The inheritance should take over here.
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.
This looks good to me!
Closes #245
This PR adds the ability to apply a branded background to the top left section of the header.
Our
GoConfigService
already provides the ability to set a branding color. This PR adds the ability to toggle on and off whether this branding is applied to the header via the service'stoggleHeaderBrandingEnabled
method.The header will use the service to ensure that the contrast ratio between the branded background and the color of the menu icon remain accessible by utilizing its
contrastIsAccessible
method.