Skip to content

Commit

Permalink
Merge branch '4.2' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Oct 28, 2022
2 parents cbfb81e + 5a2150c commit 193378a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
.c-simple-dropdown {
position: relative;
min-width: calculateRem(120px);
height: calculateRem(32px);
border: calculateRem(1px) solid transparent;
border-radius: $ibexa-border-radius;
display: flex;
align-items: center;

&__selected {
font-size: $ibexa-text-font-size-medium;
padding: calculateRem(2px) calculateRem(30px) calculateRem(2px) 0;
padding: calculateRem(2px) calculateRem(30px) calculateRem(2px) calculateRem(8px);
min-height: calculateRem(21px);
cursor: pointer;
position: relative;
width: 100%;
}

&__expand-icon {
position: absolute;
top: calculateRem(9px);
top: calculateRem(7px);
right: calculateRem(8px);
}

Expand Down Expand Up @@ -77,6 +83,7 @@
&__list-item-type-icon,
&__selected-item-type-icon {
margin-right: calculateRem(8px);
margin-top: calculateRem(-2px);
}

&__option-label {
Expand Down Expand Up @@ -113,4 +120,12 @@
}
}
}

&:hover {
border-color: $ibexa-color-primary;

.c-simple-dropdown__expand-icon {
fill: $ibexa-color-primary;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,11 @@
background-color: $ibexa-color-dark-200;
}
}

&:hover {
.ibexa-icon {
fill: $ibexa-color-primary;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.c-top-menu-search-input {
margin-left: calculateRem(8px);

&--search-opened {
.c-top-menu-search-input {
&__search-input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const SimpleDropdown = ({ options, selectedOption, extraClasses, onOptionClick,
const renderCaretIcon = () => {
const iconName = isExpanded ? 'caret-up' : 'caret-down';

return <Icon name={iconName} extraClasses="ibexa-icon--tiny c-simple-dropdown__expand-icon" />;
return <Icon name={iconName} extraClasses="ibexa-icon--tiny-small c-simple-dropdown__expand-icon" />;
};
const renderSelectedLabel = () => {
if (!selectedOption && !!selectedItemLabel) {
Expand Down

0 comments on commit 193378a

Please sign in to comment.