@brightspace-ui/core 3.330.0 → 3.331.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import '../tooltip/tooltip.js';
1
2
  import { html, LitElement } from 'lit';
2
3
  import { FocusMixin } from '../../mixins/focus/focus-mixin.js';
3
4
  import { PropertyRequiredMixin } from '../../mixins/property-required/property-required-mixin.js';
@@ -40,14 +41,14 @@ class ToolbarButton extends SlottedIconMixin(FocusMixin(ToolbarItemMixin(ThemeMi
40
41
  return html`
41
42
  <button
42
43
  aria-disabled="${this.disabled ? 'true' : 'false'}"
43
- aria-label="${this.text}"
44
44
  @click="${this.#handleClick}"
45
+ id="action-button"
45
46
  tabindex="${this._activeFocusable ? 0 : -1}"
46
- title="${this.text}"
47
47
  type="button">
48
48
  <div class="background"></div>
49
49
  ${this._renderIcon()}
50
50
  </button>
51
+ <d2l-tooltip class="vdiff-target" for="action-button" for-type="label">${this.text}</d2l-tooltip>
51
52
  `;
52
53
  }
53
54
 
@@ -101,7 +101,7 @@ class ToolbarDropdown extends FocusMixin(DropdownOpenerMixin(SlottedIconMixin(To
101
101
  <d2l-icon icon="tier1:chevron-down-small"></d2l-icon>
102
102
  </button>
103
103
  <d2l-tooltip class="${classMap(tooltipClasses)}" for="opener">
104
- ${this.text}
104
+ <span aria-hidden="true">${this.text}</span>
105
105
  <span class="d2l-offscreen">${this.valueText}</span>
106
106
  </d2l-tooltip>
107
107
  <slot></slot>
@@ -1,3 +1,4 @@
1
+ import '../tooltip/tooltip.js';
1
2
  import { css, html, LitElement } from 'lit';
2
3
  import { FocusMixin } from '../../mixins/focus/focus-mixin.js';
3
4
  import { ifDefined } from 'lit/directives/if-defined.js';
@@ -80,15 +81,15 @@ class ToolbarToggle extends SlottedIconMixin(FocusMixin(ToolbarItemMixin(ThemeMi
80
81
  <button
81
82
  aria-disabled="${this.disabled ? 'true' : 'false'}"
82
83
  aria-expanded="${ifDefined(this.expandable ? (this.expanded ? 'true' : 'false') : undefined)}"
83
- aria-label="${this.text}"
84
84
  aria-pressed="${ifDefined(!this.expandable ? (this.pressed ? 'true' : 'false') : undefined)}"
85
85
  @click="${this.#handleClick}"
86
+ id="action-button"
86
87
  tabindex="${this._activeFocusable ? 0 : -1}"
87
- title="${this.text}"
88
88
  type="button">
89
89
  <div class="background"></div>
90
90
  ${this._renderIcon()}
91
91
  </button>
92
+ <d2l-tooltip class="vdiff-target" for="action-button" for-type="label">${this.text}</d2l-tooltip>
92
93
  `;
93
94
  }
94
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.330.0",
3
+ "version": "3.331.0",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",