Skip to content

Commit

Permalink
Merge branch 'main' into dlockhart/fix-taglist
Browse files Browse the repository at this point in the history
  • Loading branch information
dlockhart authored Nov 17, 2023
2 parents aedefba + 792cebc commit c4d296c
Show file tree
Hide file tree
Showing 83 changed files with 31 additions and 326 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,9 @@
"no-undef": 0,
"indent": 0
}
},
{
"files": "**/test/*",
"extends": "brightspace/open-wc-testing-config"
}]
}
2 changes: 1 addition & 1 deletion .lmsrelease
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.23.12
20.24.1
3 changes: 0 additions & 3 deletions components/alert/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/backdrop/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/breadcrumbs/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/button/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/calendar/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/card/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/collapsible-panel/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/colors/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/count-badge/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/demo/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/description-list/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/dialog/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/dropdown/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/empty-state/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/expand-collapse/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/filter/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/focus-trap/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/form/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/hierarchical-view/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/html-block/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/icons/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/inputs/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/link/test/.eslintrc.json

This file was deleted.

13 changes: 1 addition & 12 deletions components/list/list-item-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ export const ListItemMixin = superclass => class extends composeMixins(
${this._renderTopPlacementMarker(html`<d2l-list-item-placement-marker></d2l-list-item-placement-marker>`)}
${this.draggable ? html`<div class="d2l-list-item-drag-image">${innerView}</div>` : innerView}
${this._renderBottomPlacementMarker(html`<d2l-list-item-placement-marker></d2l-list-item-placement-marker>`)}
${this._displayKeyboardTooltip && tooltipForId ? html`<d2l-tooltip align="start" announced for="${tooltipForId}" for-type="descriptor">${this._renderTooltipContent()}</d2l-tooltip>` : ''}
${this._displayKeyboardTooltip && tooltipForId ? html`<d2l-tooltip align="start" announced for="${tooltipForId}" for-type="descriptor">${this.localizeHTML('components.list.keyboard')}</d2l-tooltip>` : ''}
`;

}
Expand All @@ -680,17 +680,6 @@ export const ListItemMixin = superclass => class extends composeMixins(
return html`<div slot="outside-control" class="handle-only" @mouseenter="${this._onMouseEnter}" @mouseleave="${this._onMouseLeave}">${dragHandle}</div>`;
}

_renderTooltipContent() {
return html`
<div>${this.localize('components.list-item-tooltip.title')}</div>
<ul>
<li><span class="d2l-list-item-tooltip-key">${this.localize('components.list-item-tooltip.up-down-key')}</span> - ${this.localize('components.list-item-tooltip.up-down-desc')}</li>
<li><span class="d2l-list-item-tooltip-key">${this.localize('components.list-item-tooltip.left-right-key')}</span> - ${this.localize('components.list-item-tooltip.left-right-desc')}</li>
<li><span class="d2l-list-item-tooltip-key">${this.localize('components.list-item-tooltip.page-up-down-key')}</span> - ${this.localize('components.list-item-tooltip.page-up-down-desc')}</li>
</ul>
`;
}

_tryFocus() {
const node = getFirstFocusableDescendant(this);
if (!node) return false;
Expand Down
3 changes: 0 additions & 3 deletions components/list/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/loading-spinner/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/menu/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/meter/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/more-less/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/object-property-list/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/offscreen/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/overflow-group/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/paging/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/scroll-wrapper/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/selection/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/skeleton/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/status-indicator/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/switch/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/table/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/tabs/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/tag-list/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/tooltip/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/typography/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions components/validation/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions controllers/attributeObserver/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions controllers/subscriber/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions directives/animate/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions directives/run-async/test/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions helpers/test/.eslintrc.json

This file was deleted.

8 changes: 1 addition & 7 deletions lang/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,10 @@ export default {
"components.input-time-range.startTime": "وقت البدء",
"components.interactive.instructions": "اضغط على Enter للتفاعل، وEscape للخروج",
"components.link.open-in-new-window": "يفتح في نافذة جديدة.",
"components.list.keyboard": "Use <b>arrow keys</b> to move focus inside this list, or <b>page up/down</b> to move up or down by 5",
"components.list-controls.label": "إجراءات القائمة",
"components.list-item-drag-handle.default": "إعادة ترتيب إجراء المادة لـ {name}",
"components.list-item-drag-handle.keyboard": "إعادة ترتيب المواد، الموضع الحالي {currentPosition} من أصل {size}. لنقل هذه المادة، اضغط على السهم المتجه إلى أعلى أو السهم المتجه إلى أسفل.",
"components.list-item-tooltip.title": "التنقل عبر لوحة المفاتيح للقوائم:",
"components.list-item-tooltip.up-down-key": "أعلى/أسفل",
"components.list-item-tooltip.up-down-desc": "نقل التركيز بين مواد القائمة.",
"components.list-item-tooltip.left-right-key": "يسار/يمين",
"components.list-item-tooltip.left-right-desc": "نقل التركيز ضمن المادة الحالية.",
"components.list-item-tooltip.page-up-down-key": "صفحة إلى الأعلى/الأسفل",
"components.list-item-tooltip.page-up-down-desc": "نقل التركيز لـ 5 مواد في كل مرة.",
"components.list-item-drag-handle-tooltip.title": "عناصر التحكم بلوحة المفاتيح لإعادة الترتيب:",
"components.list-item-drag-handle-tooltip.enter-key": "إدخال",
"components.list-item-drag-handle-tooltip.enter-desc": "تبديل وضع إعادة ترتيب لوحة المفاتيح.",
Expand Down
8 changes: 1 addition & 7 deletions lang/cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,10 @@ export default {
"components.input-time-range.startTime": "Amser Dechrau",
"components.interactive.instructions": "Pwyswch Enter i ryngweithio, Escape i adael",
"components.link.open-in-new-window": "Yn agor mewn ffenestr newydd",
"components.list.keyboard": "Use <b>arrow keys</b> to move focus inside this list, or <b>page up/down</b> to move up or down by 5",
"components.list-controls.label": "Camau gweithredu ar gyfer rhestr",
"components.list-item-drag-handle.default": "Aildrefnu gweithred eitem ar gyfer {name}",
"components.list-item-drag-handle.keyboard": "Aildrefnu eitemau, safle presennol {currentPosition} allan o {size}. I symud yr eitem hon, pwyswch y saeth i fyny neu'r saeth i lawr.",
"components.list-item-tooltip.title": "Llywio Bysellfwrdd ar gyfer Rhestrau:",
"components.list-item-tooltip.up-down-key": "I Fyny/I Lawr",
"components.list-item-tooltip.up-down-desc": "Symud y ffocws rhwng eitemau rhestr.",
"components.list-item-tooltip.left-right-key": "Chwith/De",
"components.list-item-tooltip.left-right-desc": "Symud y ffocws o fewn yr eitem bresennol.",
"components.list-item-tooltip.page-up-down-key": "Tudalen I Fyny/I Lawr",
"components.list-item-tooltip.page-up-down-desc": "Symud y ffocws 5 eitem ar y tro.",
"components.list-item-drag-handle-tooltip.title": "Rheolaethau bysellfwrdd ar gyfer aildrefnu:",
"components.list-item-drag-handle-tooltip.enter-key": "Nodi",
"components.list-item-drag-handle-tooltip.enter-desc": "Toglo'r modd aildrefnu bysellfwrdd.",
Expand Down
8 changes: 1 addition & 7 deletions lang/da.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,10 @@ export default {
"components.input-time-range.startTime": "Starttidspunkt",
"components.interactive.instructions": "Tryk på Enter for at interagere, Escape for at afslutte",
"components.link.open-in-new-window": "Åbnes i et nyt vindue.",
"components.list.keyboard": "Use <b>arrow keys</b> to move focus inside this list, or <b>page up/down</b> to move up or down by 5",
"components.list-controls.label": "Handlinger for liste",
"components.list-item-drag-handle.default": "Omarranger elementhandling for {name}",
"components.list-item-drag-handle.keyboard": "Omarranger element, aktuel position {currentPosition} ud af {size}. For at flytte dette element skal du trykke på pil op eller pil ned.",
"components.list-item-tooltip.title": "Tastaturnavigering for lister:",
"components.list-item-tooltip.up-down-key": "Op/ned",
"components.list-item-tooltip.up-down-desc": "Flyt fokus mellem listeelementer.",
"components.list-item-tooltip.left-right-key": "Venstre/højre",
"components.list-item-tooltip.left-right-desc": "Flyt fokus inden for det aktuelle element.",
"components.list-item-tooltip.page-up-down-key": "Side op/ned",
"components.list-item-tooltip.page-up-down-desc": "Flyt fokus 5 elementer ad gangen.",
"components.list-item-drag-handle-tooltip.title": "Tastaturkontrolelementer for omorganisering:",
"components.list-item-drag-handle-tooltip.enter-key": "Indtast",
"components.list-item-drag-handle-tooltip.enter-desc": "Skift tilstand for omorganisering af tastatur.",
Expand Down
8 changes: 1 addition & 7 deletions lang/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,10 @@ export default {
"components.input-time-range.startTime": "Startzeit",
"components.interactive.instructions": "Drücken Sie die Eingabetaste zum Interagieren oder die Escape-Taste, um das Fenster zu schließen",
"components.link.open-in-new-window": "Wird in einem neuen Fenster geöffnet.",
"components.list.keyboard": "Use <b>arrow keys</b> to move focus inside this list, or <b>page up/down</b> to move up or down by 5",
"components.list-controls.label": "Aktionen für Liste",
"components.list-item-drag-handle.default": "Elementaktion für {name} neu anordnen",
"components.list-item-drag-handle.keyboard": "Elemente neu anordnen; aktuelle Position: {currentPosition} von {size}. Drücken Sie zum Bewegen dieses Elements auf den Pfeil nach oben oder den Pfeil nach unten.",
"components.list-item-tooltip.title": "Tastaturnavigation für Listen:",
"components.list-item-tooltip.up-down-key": "Nach oben/unten",
"components.list-item-tooltip.up-down-desc": "Fokus zwischen Listeneinträgen verschieben.",
"components.list-item-tooltip.left-right-key": "Links/Rechts",
"components.list-item-tooltip.left-right-desc": "Fokus innerhalb des aktuellen Elements verschieben.",
"components.list-item-tooltip.page-up-down-key": "Bild Auf/Ab",
"components.list-item-tooltip.page-up-down-desc": "Fokus um jeweils 5 Elemente verschieben.",
"components.list-item-drag-handle-tooltip.title": "Tastatursteuerelemente für Neuanordnung:",
"components.list-item-drag-handle-tooltip.enter-key": "Eingabe",
"components.list-item-drag-handle-tooltip.enter-desc": "Tastatur-Neuanordnungsmodus ändern.",
Expand Down
8 changes: 1 addition & 7 deletions lang/en-gb.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,10 @@ export default {
"components.input-time-range.startTime": "Start Time",
"components.interactive.instructions": "Press Enter to interact, Escape to exit",
"components.link.open-in-new-window": "Opens in a new window.",
"components.list.keyboard": "Use <b>arrow keys</b> to move focus inside this list, or <b>page up/down</b> to move up or down by 5",
"components.list-controls.label": "Actions for list",
"components.list-item-drag-handle.default": "Reorder item action for {name}",
"components.list-item-drag-handle.keyboard": "Reorder item, current position {currentPosition} out of {size}. To move this item, press up or down arrows.",
"components.list-item-tooltip.title": "Keyboard Navigation for Lists:",
"components.list-item-tooltip.up-down-key": "Up/Down",
"components.list-item-tooltip.up-down-desc": "Move focus between list items.",
"components.list-item-tooltip.left-right-key": "Left/Right",
"components.list-item-tooltip.left-right-desc": "Move focus within current item.",
"components.list-item-tooltip.page-up-down-key": "Page Up/Down",
"components.list-item-tooltip.page-up-down-desc": "Move focus 5 items at a time.",
"components.list-item-drag-handle-tooltip.title": "Keyboard Controls for Reordering:",
"components.list-item-drag-handle-tooltip.enter-key": "Enter",
"components.list-item-drag-handle-tooltip.enter-desc": "Toggle keyboard reorder mode.",
Expand Down
8 changes: 1 addition & 7 deletions lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,10 @@ export default {
"components.input-time-range.startTime": "Start Time",
"components.interactive.instructions": "Press Enter to interact, Escape to exit",
"components.link.open-in-new-window": "Opens in a new window.",
"components.list.keyboard": "Use <b>arrow keys</b> to move focus inside this list, or <b>page up/down</b> to move up or down by 5",
"components.list-controls.label": "Actions for list",
"components.list-item-drag-handle.default": "Reorder item action for {name}",
"components.list-item-drag-handle.keyboard": "Reorder item, current position {currentPosition} out of {size}. To move this item, press up or down arrows.",
"components.list-item-tooltip.title": "Keyboard Navigation for Lists:",
"components.list-item-tooltip.up-down-key": "Up/Down",
"components.list-item-tooltip.up-down-desc": "Move focus between list items.",
"components.list-item-tooltip.left-right-key": "Left/Right",
"components.list-item-tooltip.left-right-desc": "Move focus within current item.",
"components.list-item-tooltip.page-up-down-key": "Page Up/Down",
"components.list-item-tooltip.page-up-down-desc": "Move focus 5 items at a time.",
"components.list-item-drag-handle-tooltip.title": "Keyboard Controls for Reordering:",
"components.list-item-drag-handle-tooltip.enter-key": "Enter",
"components.list-item-drag-handle-tooltip.enter-desc": "Toggle keyboard reorder mode.",
Expand Down
8 changes: 1 addition & 7 deletions lang/es-es.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,10 @@ export default {
"components.input-time-range.startTime": "Hora de inicio",
"components.interactive.instructions": "Pulse Enter para interactuar y Escape para salir",
"components.link.open-in-new-window": "Se abre en una ventana nueva.",
"components.list.keyboard": "Use <b>arrow keys</b> to move focus inside this list, or <b>page up/down</b> to move up or down by 5",
"components.list-controls.label": "Acciones para la lista",
"components.list-item-drag-handle.default": "Reordenar acción de elemento para {name}",
"components.list-item-drag-handle.keyboard": "Reordenar elementos, posición actual {currentPosition} de {size}. Para mover este elemento, pulse las flechas arriba o abajo.",
"components.list-item-tooltip.title": "Navegación de listas con el teclado:",
"components.list-item-tooltip.up-down-key": "Arriba/abajo",
"components.list-item-tooltip.up-down-desc": "Mover el enfoque entre los elementos de la lista.",
"components.list-item-tooltip.left-right-key": "Izquierda/derecha",
"components.list-item-tooltip.left-right-desc": "Mover el enfoque dentro del elemento actual.",
"components.list-item-tooltip.page-up-down-key": "Avanzar/retroceder página",
"components.list-item-tooltip.page-up-down-desc": "Mover el enfoque 5 elementos a la vez.",
"components.list-item-drag-handle-tooltip.title": "Controles del teclado para reordenar:",
"components.list-item-drag-handle-tooltip.enter-key": "Intro",
"components.list-item-drag-handle-tooltip.enter-desc": "Alternar el modo de reordenación del teclado.",
Expand Down
8 changes: 1 addition & 7 deletions lang/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,10 @@ export default {
"components.input-time-range.startTime": "Hora de inicio",
"components.interactive.instructions": "Presione Intro para interactuar y Escape para salir",
"components.link.open-in-new-window": "Se abre en una ventana nueva.",
"components.list.keyboard": "Use <b>arrow keys</b> to move focus inside this list, or <b>page up/down</b> to move up or down by 5",
"components.list-controls.label": "Acciones para la lista",
"components.list-item-drag-handle.default": "Acción de reordenar elemento de {name}",
"components.list-item-drag-handle.keyboard": "Reordenar elemento, posición actual {currentPosition} de {size}. Para mover este elemento, presione las flechas hacia arriba o hacia abajo.",
"components.list-item-tooltip.title": "Navegación con el teclado para listas:",
"components.list-item-tooltip.up-down-key": "Arriba/abajo",
"components.list-item-tooltip.up-down-desc": "Mover el enfoque entre los elementos de la lista.",
"components.list-item-tooltip.left-right-key": "Izquierda/derecha",
"components.list-item-tooltip.left-right-desc": "Mover el enfoque dentro del elemento actual.",
"components.list-item-tooltip.page-up-down-key": "Retroceder/avanzar página",
"components.list-item-tooltip.page-up-down-desc": "Mover el enfoque en 5 elementos a la vez.",
"components.list-item-drag-handle-tooltip.title": "Controles del teclado para el reordenamiento:",
"components.list-item-drag-handle-tooltip.enter-key": "Ingresar",
"components.list-item-drag-handle-tooltip.enter-desc": "Alternar el modo de reordenamiento del teclado.",
Expand Down
8 changes: 1 addition & 7 deletions lang/fr-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,10 @@ export default {
"components.input-time-range.startTime": "Heure de début",
"components.interactive.instructions": "Appuyer sur entrée pour interagir, sur Echap pour quitter",
"components.link.open-in-new-window": "S’ouvre dans une nouvelle fenêtre.",
"components.list.keyboard": "Use <b>arrow keys</b> to move focus inside this list, or <b>page up/down</b> to move up or down by 5",
"components.list-controls.label": "Actions pour la liste",
"components.list-item-drag-handle.default": "Action de réorganisation de l'élément pour {name}",
"components.list-item-drag-handle.keyboard": "Réordonner les éléments, position actuelle {currentPosition} sur {size}. Pour déplacer cet élément, appuyez sur les flèches vers le haut ou vers le bas.",
"components.list-item-tooltip.title": "Navigation au clavier pour les listes :",
"components.list-item-tooltip.up-down-key": "Haut/bas",
"components.list-item-tooltip.up-down-desc": "Déplacez le focus entre les éléments de la liste.",
"components.list-item-tooltip.left-right-key": "Gauche/droite",
"components.list-item-tooltip.left-right-desc": "Déplacez le focus dans l'élément concerné.",
"components.list-item-tooltip.page-up-down-key": "Page précédente/suivante",
"components.list-item-tooltip.page-up-down-desc": "Déplacez le focus sur 5 éléments à la fois.",
"components.list-item-drag-handle-tooltip.title": "Commandes du clavier pour la réorganisation :",
"components.list-item-drag-handle-tooltip.enter-key": "Saisir",
"components.list-item-drag-handle-tooltip.enter-desc": "Basculez le mode de réorganisation du clavier.",
Expand Down
Loading

0 comments on commit c4d296c

Please sign in to comment.