Skip to content

Commit

Permalink
Merge pull request #1233 from thunderstore-io/10-17-fix_select_conten…
Browse files Browse the repository at this point in the history
…t_colors_on__communities

Fix Select content colors on /communities
  • Loading branch information
Oksamies authored Oct 17, 2024
2 parents f547557 + a3da9ef commit a4613ec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion packages/cyberstorm/src/newComponents/Select/Select.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
border: var(--space--px) var(--color-surface--6) solid;
border-radius: var(--border-radius--8);
overflow: hidden;
color: var(--text-color);
color: var(--color-primary);
background-color: var(--color-surface--2);
box-shadow: var(--box-shadow-default);
animation: fade-in var(--animation-length-l) ease;
Expand All @@ -26,6 +26,7 @@
gap: var(--gap--12);
align-items: center;
padding: var(--space--12) var(--space--16);
color: var(--color-primary);
outline: none;
cursor: pointer;
}
Expand All @@ -35,6 +36,15 @@
background-color: var(--color-surface--6, var(--color-primary, red));
}

.item > .itemIcon {
width: 1em;
color: var(--color-tertiary);
}

.item[data-highlighted] > .itemIcon {
color: var(--color-primary);
}

.content__wide {
justify-content: space-between;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cyberstorm/src/newComponents/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const mapSelectData = (options: SelectOption[]) => {
csColor="surface"
csTextStyles={["fontSizeS", "fontWeightMedium"]}
>
<NewIcon csMode="inline" noWrapper>
<NewIcon csMode="inline" noWrapper rootClasses={styles.itemIcon}>
{option.leftIcon}
</NewIcon>
{option.label}
Expand Down

0 comments on commit a4613ec

Please sign in to comment.