Skip to content

Commit

Permalink
fix: fix checkbox style (#3665)
Browse files Browse the repository at this point in the history
* fix: fix searchbar

* fix: remove basic width

* fix: remove hack css
  • Loading branch information
huhuanming authored Oct 17, 2023
1 parent ed1d758 commit 1a7cafe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/components/src/Input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export function Input({
borderRadius={size === 'large' ? '$3' : '$2'}
disablePassBorderRadius={!addOns?.length}
disabled={disabled}
flex={1}
>
{/* input */}
<Group.Item>
Expand Down
4 changes: 3 additions & 1 deletion packages/components/src/SearchBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ export function SearchBar({
onChangeText={onChange}
h={height ?? '$7'}
returnKeyType="search"
// remove basic border width
borderWidth={0}
flex={1}
// remove border on right
borderRightWidth={0}
/>
<AnimatePresence>
{value?.length ? (
Expand Down
6 changes: 0 additions & 6 deletions packages/shared/src/web/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,3 @@ textarea {
[data-sonner-toast] {
max-width: calc(100vw - 32px);
}


button[role="checkbox"]:focus {
border: 0;
padding: 0;
}

0 comments on commit 1a7cafe

Please sign in to comment.