-
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
Ability to Brand Side Nav and Accordion #167
Conversation
b4f1174
to
7def64d
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.
My name is Otter and I approve of this PR. @AlexOverbeck @grahamhency
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.
We should be able to do this without querying the dom or using ViewChildren. We should also think about making this some sort of observable where we subscribe to the brand data.
7def64d
to
9937eba
Compare
0283fac
to
1d9c1a5
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.
@StevenUlmer all of this looks pretty good. What do you think about switching the naming of this to ConfigService
? We can then make a GoConfig
interface that has various configurations on it. The two I'm thinking right now would be:
- brandColor (which you already have)
- theme
This way, we could expand upon the interface in the future without having to introduce new services for each thing.
@StevenUlmer just a couple of other comments on this one.
|
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.
@StevenUlmer just a couple of comments, getting close!
projects/go-lib/src/lib/components/go-side-nav/go-nav-item/go-nav-item.component.ts
Show resolved
Hide resolved
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.
Boom, this is ready to go! 👍
closes #158
This adds the ability to brand a couple items in goponents. For now this just includes the 'active' rectangle for both the side nav and the accordion panels. This also removes some unused css from the go-card where branding was being used.
All it takes to brand everything is to import the GoBrandingService into your app.component.ts file and set the brand color through
goBrandingService.setBrandColor(color)