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

fix(dropdown): fix the styles for icons with shape caret #5946

Merged
merged 1 commit into from May 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -28,6 +28,7 @@
margin: 0;
}

clr-icon[shape^='caret'],
clr-icon[shape^='angle'] {
position: absolute;
top: 50%;
Expand All @@ -39,6 +40,7 @@
// NOTE: cds-icon handles direction internally.
// No need to translate it.
// This results in a different top value.
cds-icon[shape^='caret'],
cds-icon[shape^='angle'] {
position: absolute;
top: 35%;
Expand All @@ -50,6 +52,8 @@
padding-right: $clr-btn-horizontal-padding + $clr-dropdown-caret-icon-dimension +
$clr-dropdown-caret-left-margin;

cds-icon[shape^='caret'],
clr-icon[shape^='caret'],
cds-icon[shape^='angle'],
clr-icon[shape^='angle'] {
right: $clr-btn-horizontal-padding;
Expand All @@ -64,6 +68,8 @@
$clr-dropdown-active-text-color,
$clr-use-custom-properties
);
cds-icon[shape^='caret'],
clr-icon[shape^='caret'],
cds-icon[shape^='angle'],
clr-icon[shape^='angle'] {
right: 0;
Expand Down