Skip to content

Commit

Permalink
feat: rename CSS class for workbench icon font from 'wb-font' to 'wb-…
Browse files Browse the repository at this point in the history
…icons'
  • Loading branch information
danielwiehl committed Dec 11, 2018
1 parent 6d9336a commit 94d3b2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="outline">
<h1 *ngIf="!!title">{{title}}</h1>
<span *ngIf="textual; else component_template">{{text}}</span>
<button type="button" class="close wb-font" (click)="onClose()"></button>
<button type="button" class="close wb-icons" (click)="onClose()"></button>
</div>

<ng-template #component_template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<div class="heading" *ngIf="view.heading as heading">{{heading}}</div>
<button *ngIf="view.closable && !view.disabled"
type="button"
class="close wb-font"
class="close wb-icons"
(click)="onClose($event)">
</button>
10 changes: 5 additions & 5 deletions projects/scion/workbench/src/theme/_font-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
font-style: normal;
}

.wb-font {
.wb-icons {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: wb-icon !important;
speak: none;
Expand All @@ -40,19 +40,19 @@
}

.wb-icon-search::before {
@extend .wb-font;
@extend .wb-icons;
content: "\e900";
}
.wb-icon-cancel::before {
@extend .wb-font;
@extend .wb-icons;
content: "\e5c9";
}
.wb-icon-close::before {
@extend .wb-font;
@extend .wb-icons;
content: "\e5cd";
}
.wb-icon-edit::before {
@extend .wb-font;
@extend .wb-icons;
content: "\e254";
}
}

0 comments on commit 94d3b2b

Please sign in to comment.