Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
fix(angular): fix icon sizing issue in dropdown toggle
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Mathis <smathis@vmware.com>
  • Loading branch information
Scott Mathis committed Jan 10, 2022
1 parent e074c23 commit 0cb5c3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion projects/angular/src/layout/nav/_header.clarity.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
// Copyright (c) 2016-2022 VMware, Inc. All Rights Reserved.
// This software is released under MIT license.
// The full license information can be found in LICENSE in the root directory of this project.

Expand Down Expand Up @@ -262,6 +262,7 @@
cds-icon[shape^='angle'],
clr-icon[shape^='angle'] {
right: $clr-header-action-caret-icon-right-position;
top: 44%;
}
}

Expand Down
6 changes: 3 additions & 3 deletions projects/angular/src/popover/dropdown/_dropdown.clarity.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
// Copyright (c) 2016-2022 VMware, Inc. All Rights Reserved.
// This software is released under MIT license.
// The full license information can be found in LICENSE in the root directory of this project.

Expand Down Expand Up @@ -34,7 +34,7 @@
top: 50%;
transform: translateY(-50%);
color: inherit;
@include equilateral($clr-dropdown-caret-icon-dimension);
@include min-equilateral($clr-dropdown-caret-icon-dimension);
}

// NOTE: cds-icon handles direction internally.
Expand All @@ -45,7 +45,7 @@
position: absolute;
top: 35%;
color: inherit;
@include equilateral($clr-dropdown-caret-icon-dimension);
@include min-equilateral($clr-dropdown-caret-icon-dimension);
}

&.btn {
Expand Down

0 comments on commit 0cb5c3b

Please sign in to comment.