mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-23 23:33:54 +00:00
Ensure mw-watchlink is used for the sticky header watchlink
Bug: T336640 Bug: T336641 Change-Id: I9b00a35feb4b100703e7f8126ccc8a2ef7234532
This commit is contained in:
parent
825716571f
commit
440843d84c
|
@ -34,7 +34,10 @@ class VectorComponentStickyHeader implements VectorComponent {
|
|||
'icon' => 'wikimedia-star',
|
||||
'is-quiet' => true,
|
||||
'tabindex' => '-1',
|
||||
'class' => 'sticky-header-icon mw-watchlink'
|
||||
// With the original watchstar, this class is applied to the <li> element
|
||||
// thats the parent of the actual watchlink. In the sticky header we dont use
|
||||
// the same markup, so its directly applied to the watchlink element
|
||||
'class' => 'mw-watchlink'
|
||||
];
|
||||
private const EDIT_VE_ICON = [
|
||||
'label' => '',
|
||||
|
@ -114,7 +117,7 @@ class VectorComponentStickyHeader implements VectorComponent {
|
|||
$icon[ 'label' ],
|
||||
$icon[ 'icon' ],
|
||||
$icon[ 'id' ],
|
||||
'sticky-header-icon',
|
||||
$icon[ 'class' ] ?? '',
|
||||
[
|
||||
'tabindex' => '-1',
|
||||
'data-event-name' => $icon[ 'event' ],
|
||||
|
@ -138,7 +141,7 @@ class VectorComponentStickyHeader implements VectorComponent {
|
|||
$this->msg( [ 'vector-2022-action-addsection', 'skin-action-addsection' ] )->text(),
|
||||
'speechBubbleAdd-progressive',
|
||||
'ca-addsection-sticky-header',
|
||||
'sticky-header-icon',
|
||||
'',
|
||||
[
|
||||
'tabindex' => '-1',
|
||||
'data-event-name' => 'addsection-sticky-header'
|
||||
|
|
Loading…
Reference in a new issue