Skip to content

Commit

Permalink
Break up styling selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomm1128 committed Dec 20, 2024
1 parent c40287e commit 109d544
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,20 @@
}
}

@mixin error-state-left-side-select-kit {
@mixin error-state-right-side-select-kit {
&:has(.pb_text_input_kit:not(.error)):has(.pb_text_input_kit_label):has(.pb_select_kit_wrapper.error),
&:has(.pb_text_input_kit.error):has(.pb_text_input_kit_label):has(.pb_select_kit_wrapper) {
align-items: flex-start;

.pb_select_kit_wrapper,
.pb_select_kit_wrapper {
padding-top: $space_md;
margin-top: 2px;

.pb_select_kit_caret {
padding-top: $space_md;
}
}

.pb_select_kit_wrapper.error {
padding-top: $space_md;
margin-top: 2px;
Expand All @@ -37,7 +45,7 @@
}
}

@mixin error-state-right-side-select-kit {
@mixin error-state-left-side-select-kit {
&:has(.pb_select_kit_label):has(.pb_select_kit_wrapper):has(.pb_phone_number_input):has(.pb_text_input_kit.error) {
align-items: flex-start;

Expand Down

0 comments on commit 109d544

Please sign in to comment.