Skip to content

Commit dbb2d63

Browse files
committed
Fix styles on label
1 parent 91f0314 commit dbb2d63

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

nav/item.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* @license
3-
* Copyright 2021 Google LLC
4-
* SPDX-License-Identifier: Apache-2.0
5-
*/
61
import '../internal/focus/focus-ring.js'
72
import '../internal/ripple/ripple.js'
83
import '../badge/badge.js'
@@ -41,8 +36,6 @@ export class NavigationItem extends LitElement {
4136
this.expanded = false
4237
}
4338
render() {
44-
// Needed for closure conformance
45-
4639
const { ariaLabel } = this
4740
// const tag = this.href ? literal`div` : literal`button`
4841
return staticHtml` <div
@@ -86,14 +79,10 @@ export class NavigationItem extends LitElement {
8679
}
8780

8881
renderButton() {
89-
// let button = document.createElement('md-button')
90-
// button.color = 'tonal'
91-
// button.size = 'medium'
92-
// button.innerHTML = this.label
9382
let color = this.active ? 'tonal' : 'text'
9483
let style = this.active
95-
? '--md-button-label-text-color: var(--md-sys-color-secondary);'
96-
: '--md-button-label-text-color: var(--md-sys-color-on-surface-variant);'
84+
? '--md-button-label-text-color: var(--md-navigation-bar-active-icon-color, --md-sys-color-secondary);'
85+
: '--md-button-label-text-color: var(--md-navigation-bar-active-icon-color, --md-sys-color-on-surface-variant);'
9786
// todo: deal with active and inactive icons
9887
return html`
9988
<md-button color="${color}" size="medium" style="${style}">

0 commit comments

Comments
 (0)