@brightspace-ui-labs/navigation
Advanced tools
Comparing version 5.10.0 to 5.11.0
@@ -33,2 +33,7 @@ import '@brightspace-ui/core/components/colors/colors.js'; | ||
/** | ||
* Visually hides the highlight border when hovered/focused | ||
* @type {boolean} | ||
*/ | ||
noHighlightBorder: { attribute: 'no-highlight-border', type: Boolean }, | ||
/** | ||
* REQUIRED: Text for the button | ||
@@ -62,2 +67,3 @@ * @type {string} | ||
this.iconPosition = 'start'; | ||
this.noHighlightBorder = false; | ||
this.textHidden = false; | ||
@@ -73,3 +79,3 @@ this._buttonId = getUniqueId(); | ||
const { ariaLabel, id, text, tooltip } = this._getRenderSettings(); | ||
const highlightBorder = !this.disabled ? html`<span class="d2l-navigation-highlight-border"></span>` : nothing; | ||
const highlightBorder = (!this.disabled && !this.noHighlightBorder) ? html`<span class="d2l-navigation-highlight-border"></span>` : nothing; | ||
const icon = html`<d2l-icon icon="${this.icon}"></d2l-icon>`; | ||
@@ -76,0 +82,0 @@ return html` |
{ | ||
"name": "@brightspace-ui-labs/navigation", | ||
"version": "5.10.0", | ||
"version": "5.11.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/BrightspaceUILabs/navigation.git", |
@@ -164,2 +164,3 @@ # navigation | ||
| `icon` | String | Preset icon key (e.g. `tier1:gear`) | | ||
| `no-highlight-border` | Boolean | Visually hides the highlight border when hovered/focused | | ||
| `text-hidden` | Boolean | Visually hides the text | | ||
@@ -166,0 +167,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74060
1646
324