Skip to content

Commit

Permalink
style: adding dark theme styles in input select
Browse files Browse the repository at this point in the history
  • Loading branch information
larissa-kamily-brisa committed Nov 26, 2024
1 parent 85dd100 commit 0e6490e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
33 changes: 33 additions & 0 deletions projects/ion/src/lib/input-select/_input-select.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ $default: (
background-color: ion-theme(neutral-1),
button: (
background-color: ion-theme(neutral-2),
icon-color: ion-theme(neutral-7),
border-color: ion-theme(neutral-5),
text: (
color: ion-theme(neutral-7),
Expand All @@ -30,9 +31,41 @@ $default: (
),
);

$dark: (
background-color: ion-theme(neutral-5),
button: (
background-color: ion-theme(neutral-6),
border-color: ion-theme(primary-3),
icon-color: ion-theme(primary-3),
text: (
color: ion-theme(primary-3),
line-height: 20px,
font-size: 14px,
font-weight: 400,
),
),
valid-icon-color: ion-theme(positive-6),
invalid: (
icon-color: ion-theme(negative-6),
border-color: ion-theme(negative-5),
hover: (
border-color: ion-theme(negative-6),
outline-color: ion-theme(negative-2),
),
),
separator-color: ion-theme(neutral-3),
disabled: (
background-color: ion-theme(neutral-7),
border-color: ion-theme(neutral-4),
text-color: ion-theme(neutral-4),
icon-color: ion-theme(neutral-4),
),
);

@include register-component(
input-select,
(
default: $default,
dark: $dark,
)
);
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
[disabled]="disabled"
>
<span>{{ currentOption?.label }}</span>
<ion-icon type="semi-down" color="var(--ion-neutral-6)"></ion-icon>
<ion-icon
type="semi-down"
color="var(--ion-input-select-button-icon-color)"
></ion-icon>
</button>

<div *ngIf="!!selectOptions && dropdownVisible" class="ion-btn-dropdown">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

.input-select-container {
display: flex;
border-radius: spacing(1);

.input {
border-radius: 0 spacing(1) spacing(1) 0;
Expand Down

0 comments on commit 0e6490e

Please sign in to comment.