fix: set display: block
on plugin icon pseudo-element (#13096)
#13101
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What it does
Fixes #13096
Fix the icon pseudo-element being displayed as
inline
by default. This meant that thewidth
andheight
properties were being ignored and the icons displayed with 0 width.Also fix css syntax for
width
andheight
properties.How to test
The most mainstream vscode extension I could reproduce the issue with was ms-kubernetes-tools. If you have no Kubernetes clusters, you can have one displayed using this dummy kubeconfig:
Just save it somewhere, then add it with the command Kubernetes: Set Kubeconfig.
Then just open the Kubernetes plugin view and note the no longer missing icon to the left of the cluster name.
I also found the issue reproduced in the gitlens plugin list of commits, here's a before/after comparison:
To reproduce this you can just install gitlens and open any git repository.
All this works on the Theia browser example.
Follow-ups
None that I can see.
Review checklist
Reminder for reviewers