mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Add accessibility labels to all type: 'list'
toolbar groups
Bug: T245776 Change-Id: I67d8e239f4fed7dd7ac4b98be3362426e753076b
This commit is contained in:
parent
a65c905287
commit
7b47575a45
|
@ -81,6 +81,8 @@ ve.init.mw.CollabTarget.static.actionGroups = [
|
|||
icon: 'menu',
|
||||
indicator: null,
|
||||
title: ve.msg( 'visualeditor-pagemenu-tooltip' ),
|
||||
label: ve.msg( 'visualeditor-pagemenu-tooltip' ),
|
||||
invisibleLabel: true,
|
||||
include: [ 'changeDirectionality', 'findAndReplace' ]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -46,6 +46,8 @@ ve.init.mw.MobileCollabTarget.static.toolbarGroups = [
|
|||
type: 'list',
|
||||
icon: 'textStyle',
|
||||
title: OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
|
||||
label: OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
|
||||
invisibleLabel: true,
|
||||
include: [ { group: 'textStyle' }, 'language', 'clear' ],
|
||||
forceExpand: [ 'bold', 'italic', 'clear' ],
|
||||
promote: [ 'bold', 'italic' ],
|
||||
|
@ -68,9 +70,10 @@ ve.init.mw.MobileCollabTarget.static.toolbarGroups = [
|
|||
name: 'insert',
|
||||
header: OO.ui.deferMsg( 'visualeditor-toolbar-insert' ),
|
||||
title: OO.ui.deferMsg( 'visualeditor-toolbar-insert' ),
|
||||
label: OO.ui.deferMsg( 'visualeditor-toolbar-insert' ),
|
||||
invisibleLabel: true,
|
||||
type: 'list',
|
||||
icon: 'add',
|
||||
label: '',
|
||||
include: '*',
|
||||
exclude: [ 'comment', 'indent', 'outdent', { group: 'format' } ]
|
||||
},
|
||||
|
|
|
@ -98,6 +98,8 @@ ve.init.mw.DesktopArticleTarget.static.actionGroups = [
|
|||
icon: 'menu',
|
||||
indicator: null,
|
||||
title: ve.msg( 'visualeditor-pagemenu-tooltip' ),
|
||||
label: ve.msg( 'visualeditor-pagemenu-tooltip' ),
|
||||
invisibleLabel: true,
|
||||
include: [ 'meta', 'categories', 'settings', 'advancedSettings', 'languages', 'templatesUsed', 'changeDirectionality', 'findAndReplace' ]
|
||||
},
|
||||
{
|
||||
|
@ -105,6 +107,8 @@ ve.init.mw.DesktopArticleTarget.static.actionGroups = [
|
|||
type: 'list',
|
||||
icon: 'edit',
|
||||
title: ve.msg( 'visualeditor-mweditmode-tooltip' ),
|
||||
label: ve.msg( 'visualeditor-mweditmode-tooltip' ),
|
||||
invisibleLabel: true,
|
||||
include: [ 'editModeVisual', 'editModeSource' ]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -54,6 +54,8 @@ ve.init.mw.MobileArticleTarget.static.toolbarGroups = [
|
|||
type: 'list',
|
||||
icon: 'textStyle',
|
||||
title: OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
|
||||
label: OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
|
||||
invisibleLabel: true,
|
||||
include: [ { group: 'textStyle' }, 'language', 'clear' ],
|
||||
forceExpand: [ 'bold', 'italic', 'clear' ],
|
||||
promote: [ 'bold', 'italic' ],
|
||||
|
@ -463,6 +465,8 @@ ve.init.mw.MobileArticleTarget.prototype.setupToolbar = function ( surface ) {
|
|||
type: 'list',
|
||||
icon: 'edit',
|
||||
title: OO.ui.deferMsg( 'visualeditor-mweditmode-tooltip' ),
|
||||
label: OO.ui.deferMsg( 'visualeditor-mweditmode-tooltip' ),
|
||||
invisibleLabel: true,
|
||||
include: [ 'editModeVisual', 'editModeSource' ]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -61,6 +61,8 @@ ve.init.mw.Target.static.toolbarGroups = [
|
|||
type: 'list',
|
||||
icon: 'textStyle',
|
||||
title: OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
|
||||
label: OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
|
||||
invisibleLabel: true,
|
||||
include: [ { group: 'textStyle' }, 'language', 'clear' ],
|
||||
forceExpand: [ 'bold', 'italic', 'clear' ],
|
||||
promote: [ 'bold', 'italic' ],
|
||||
|
@ -79,6 +81,8 @@ ve.init.mw.Target.static.toolbarGroups = [
|
|||
type: 'list',
|
||||
icon: 'listBullet',
|
||||
title: OO.ui.deferMsg( 'visualeditor-toolbar-structure' ),
|
||||
label: OO.ui.deferMsg( 'visualeditor-toolbar-structure' ),
|
||||
invisibleLabel: true,
|
||||
include: [ { group: 'structure' } ],
|
||||
demote: [ 'outdent', 'indent' ]
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue