Skip to content

Commit 2b1c71e

Browse files
authored
fix: set display: block on plugin icon pseudo-element (#13096) (#13101)
Fix the icon pseudo-element being displayed as `inline` by default. This meant that the `width` and `height` properties were being ignored and the icons displayed with 0 width. Also fix css syntax for `width` and `height` properties. Signed-off-by: Beniamino Ventura <[email protected]> Co-authored-by: Beniamino Ventura <[email protected]>
1 parent ee085d5 commit 2b1c71e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/plugin-ext/src/main/browser/plugin-shared-style.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ export class PluginSharedStyle {
125125
toDispose.push(this.insertRule('.' + iconClass + '::before', theme => `
126126
content: "";
127127
background-position: 2px;
128-
width: ${size}'px';
129-
height: ${size}'px';
128+
display: block;
129+
width: ${size}px;
130+
height: ${size}px;
130131
background: center no-repeat url("${theme.type === 'light' ? lightIconUrl : darkIconUrl}");
131132
background-size: ${size}px;
132133
`));

0 commit comments

Comments
 (0)