@brightspace-ui/core 2.184.3 → 2.184.5

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.
@@ -434,6 +434,7 @@ export const ListItemMixin = superclass => class extends composeMixins(
434
434
  this.first = false;
435
435
  this.noPrimaryAction = false;
436
436
  this.paddingType = 'normal';
437
+ this._addButtonTopId = getUniqueId();
437
438
  this._contentId = getUniqueId();
438
439
  this._displayKeyboardTooltip = false;
439
440
  this._hasColorSlot = false;
@@ -667,7 +668,14 @@ export const ListItemMixin = superclass => class extends composeMixins(
667
668
 
668
669
  const alignNested = ((this.draggable && this.selectable) || (this.expandable && this.selectable && this.color)) ? 'control' : undefined;
669
670
  const primaryAction = ((!this.noPrimaryAction && this._renderPrimaryAction) ? this._renderPrimaryAction(this._contentId) : null);
670
- const tooltipForId = (primaryAction ? this._primaryActionId : (this.selectable ? this._checkboxId : null));
671
+ let tooltipForId = null;
672
+ if (this._showAddButton) {
673
+ tooltipForId = this._addButtonTopId;
674
+ } else if (primaryAction) {
675
+ tooltipForId = this._primaryActionId;
676
+ } else if (this.selectable) {
677
+ tooltipForId = this._checkboxId;
678
+ }
671
679
  const addButtonText = this._addButtonText || this.localize('components.list-item.addItem');
672
680
  const innerView = html`
673
681
  <d2l-list-item-generic-layout
@@ -680,7 +688,13 @@ export const ListItemMixin = superclass => class extends composeMixins(
680
688
  ?no-primary-action="${this.noPrimaryAction}">
681
689
  ${this._showAddButton && this.first ? html`
682
690
  <div slot="add-top">
683
- <d2l-button-add text="${addButtonText}" mode="icon-when-interacted" @click="${this._handleButtonAddClick}" data-is-first></d2l-button-add>
691
+ <d2l-button-add
692
+ text="${addButtonText}"
693
+ mode="icon-when-interacted"
694
+ @click="${this._handleButtonAddClick}"
695
+ data-is-first
696
+ id="${this._addButtonTopId}">
697
+ </d2l-button-add>
684
698
  </div>
685
699
  ` : nothing}
686
700
  <div slot="outside-control-container" class="${classMap(bottomBorderClasses)}"></div>
package/helpers/prism.js CHANGED
@@ -40,7 +40,7 @@ const darkColors = Object.freeze({
40
40
  lineNumbers: '#9ea5a9',
41
41
  lineNumbersBackground: '#303133',
42
42
  tokenDefault: '#cdd5dc',
43
- tokenComment: '#81898d',
43
+ tokenComment: '#90989d',
44
44
  tokenPunctuation: '#cdd5dc',
45
45
  tokenNumber: '#cdd5dc',
46
46
  tokenUrl: '#cdd5dc',
@@ -73,7 +73,7 @@ const lightColors = Object.freeze({
73
73
  lineNumbers: '#6e7477',
74
74
  lineNumbersBackground: '#f1f5fb',
75
75
  tokenDefault: '#202122',
76
- tokenComment: '#90989d',
76
+ tokenComment: '#6e7477',
77
77
  tokenPunctuation: '#494c4e',
78
78
  tokenNumber: '#494c4e',
79
79
  tokenUrl: '#494c4e',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.184.3",
3
+ "version": "2.184.5",
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",