File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /**
2- * @license
3- * Copyright 2021 Google LLC
4- * SPDX-License-Identifier: Apache-2.0
5- */
61import '../internal/focus/focus-ring.js'
72import '../internal/ripple/ripple.js'
83import '../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- butto n color = "${ color } " size = "medium" style= "${ style } ">
You can’t perform that action at this time.
0 commit comments