Skip to content

Commit

Permalink
🐛 fix: テキストボックスのデザインを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
takashi0602 committed Dec 28, 2023
1 parent ed34259 commit f64592b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
4 changes: 3 additions & 1 deletion src/components/base/Textbox/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export const Textbox: Story = {
<form onSubmit={handleSubmit(action('handleSubmit'))}>
<dl>
<dt style={{ marginBottom: '8px' }}>
<label htmlFor="title">Title</label>
<label htmlFor="title" style={{ color: 'white' }}>
Title
</label>
</dt>
<dd style={{ marginBottom: '24px' }}>
<BaseTextbox errors={errors} id="title" register={register} />
Expand Down
34 changes: 20 additions & 14 deletions src/components/base/Textbox/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,37 @@ import { sprinkles } from '@/styles/sprinkles.css';
const styles = {
textbox: style([
sprinkles({
height: {
desktop: 40,
mobile: 36,
height: 40,
fontSize: 16,
lineHeight: 1,
color: 'white',
paddingX: 1,
borderColor: 'white',
outlineWidth: {
focusVisible: 2,
},
fontSize: {
desktop: 16,
mobile: 14,
outlineStyle: {
focusVisible: 'solid',
},
color: 'black',
paddingX: 1,
borderColor: {
default: 'gray',
focusVisible: 'blue',
outlineColor: {
focusVisible: 'white',
},
outlineOffset: {
focusVisible: -1,
},
}),
{
width: '100%',
borderWidth: '1px',
backgroundColor: 'transparent',
borderWidth: 1,
borderStyle: 'solid',
borderRadius: '5px',
borderRadius: 5,
outline: 'none',
},
]),
error: sprinkles({
color: 'red',
borderColor: 'red',
backgroundColor: 'lightRed',
}),
};

Expand Down

0 comments on commit f64592b

Please sign in to comment.