Skip to content

Commit

Permalink
Add material theming to thumbTack sortingButton
Browse files Browse the repository at this point in the history
Change className to NgClass to avoid overriding styling classes when intilized #3459
  • Loading branch information
phanlezz committed Jan 19, 2024
1 parent 39bf39b commit 206834e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "../../../material/theme";

cc-search-panel {
.search-panel-card {
border-left: none;
Expand All @@ -18,4 +20,12 @@ cc-search-panel {
pointer-events: none;
}
}

.submenu-button {
border: 2px solid theme.$cc-primary-color;

&:hover {
border: 2px solid theme.$cc-emphasized-color;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<button
class="box-rounded"
class="box-rounded submenu-button"
(click)="onClick()"
title="Toggle sort order (currently {{ (sortingOrderAscending$ | async) ? 'ascending' : 'descending' }})"
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<button class="box-rounded" (click)="onClick()" title="Pin file explorer" [className]="(isSearchPanelPinned$ | async) ? 'pinned' : ''">
<button
class="box-rounded submenu-button"
(click)="onClick()"
title="Pin file explorer"
[ngClass]="(isSearchPanelPinned$ | async) ? 'pinned' : ''"
>
<i class="fa fa-thumb-tack"></i>
</button>

0 comments on commit 206834e

Please sign in to comment.