Skip to content

Commit

Permalink
fix: fix grayColor is not working; fix outline style for carousel lab…
Browse files Browse the repository at this point in the history
…el of input
  • Loading branch information
lejunyang committed Aug 14, 2024
1 parent 9b0a915 commit c99983b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/common/themeProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const themeProps = {
highContrast: undefBoolProp,
appearance: PropString<'light' | 'dark'>(),
scale: PropNumber(),
// TODO grayColor
grayColor: PropString<GrayColors>(),
};

export type ThemeProps = ExtractPropTypes<typeof themeProps>;
Expand Down
4 changes: 3 additions & 1 deletion packages/theme/src/scss/components/input/basic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@
);
}
@include em(label, has-carousel, true) {
overflow: hidden;
// overflow: hidden; // it will clip the outline when focus
overflow: clip;
overflow-clip-margin: 1px;
}
@include em(label, float, true) {
.#{$B}:focus-within &,
Expand Down

0 comments on commit c99983b

Please sign in to comment.