Skip to content

Commit

Permalink
refactor(core): ♻️ re-implement VE action icon
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed May 6, 2024
1 parent 9a403ee commit a81bf1f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
5 changes: 1 addition & 4 deletions includes/Hooks/SkinHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,7 @@ private static function updateViewsMenu( &$links ) {
'edit' => 'edit',
'view-foreign' => 'linkExternal',
// Extension:VisualEditor
// For some reason the icon span element keeps getting removed
// So we are adding this the legacy way
// Bug: T323188
// 've-edit' => 'edit',
've-edit' => 'edit',
// Extension:DiscussionTools
'addsection' => 'speechBubbleAdd'
];
Expand Down
13 changes: 0 additions & 13 deletions resources/skins.citizen.styles/components/Pagetools.less
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@
}
}

> a,
.citizen-ui-icon {
&::before {
filter: invert( 1 );
Expand All @@ -184,18 +183,6 @@
// VE styles shouldn't be core but it is just a few lines :/
#ca-ve-edit {
order: 98; // Before source edit

> a {
// See SkinHooks.php for why VE is here
&::before {
width: var( --size-icon );
height: var( --size-icon );
content: '';
background-repeat: no-repeat;
background-position: center;
background-size: var( --size-icon );
}
}
}

#ca-edit {
Expand Down
8 changes: 6 additions & 2 deletions skin.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"Disabled": [
"citizen"
]
},
"VisualEditor": {
"IconSkins": [
"citizen"
]
}
},
"ValidSkinNames": {
Expand Down Expand Up @@ -277,8 +282,7 @@
"selector": "{name}",
"defaultColor": "#000",
"images": {
".citizen-toc__top:before": "resources/skins.citizen.icons/backToTop.svg",
"#ca-ve-edit > a:before": "resources/skins.citizen.icons/wmui/edit.svg"
".citizen-toc__top:before": "resources/skins.citizen.icons/backToTop.svg"
}
},
"skins.citizen.icons.wmui": {
Expand Down

0 comments on commit a81bf1f

Please sign in to comment.