Skip to content

Commit

Permalink
Apply typehierarchy styling to only typehierarchy
Browse files Browse the repository at this point in the history
Fixes #4554

Previously, the `typehierarchy` extension would describe styling which
were set globally instead of solely for the `typehierarchy` widget.
This meant that any other component using the `theia-caption-suffix`
would be styled incorrectly.

The fix was to simply specify the styling solely for the `typehierarchy` class.

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
  • Loading branch information
vince-fugnitto committed Mar 13, 2019
1 parent 8235400 commit 2bd0e8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/typehierarchy/src/browser/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
color: var(--theia-ui-font-color1);
}

.theia-caption-suffix {
.theia-type-hierarchy-tree .theia-caption-suffix {
padding-left: 10px !important;
}

.theia-caption-prefix {
.theia-type-hierarchy-tree .theia-caption-prefix {
padding-right: 5px !important;
padding-left: 1px !important;
}

0 comments on commit 2bd0e8f

Please sign in to comment.