Skip to content

Commit

Permalink
Merge pull request #334 from uyupun/fix/311_line-height
Browse files Browse the repository at this point in the history
themeで定義しているline-heightの値を修正と、それに伴う修正
  • Loading branch information
takashi0602 authored Dec 7, 2023
2 parents a4a4713 + f1eed41 commit 23001fb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/base/Heading/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { sprinkles } from '@/styles/sprinkles.css';

const styles = {
common: sprinkles({
lineHeight: 'heading',
lineHeight: 1.3,
fontWeight: 'bold',
color: 'black',
}),
Expand Down
2 changes: 1 addition & 1 deletion src/components/base/Text/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const fontStyle: { [Key in TextFontStyle]: string } = {

const styles = recipe({
base: sprinkles({
lineHeight: 'text',
lineHeight: 1.8,
fontSize: {
mobile: 14,
desktop: 16,
Expand Down
2 changes: 1 addition & 1 deletion src/components/base/Textarea/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const styles = {
desktop: 16,
mobile: 14,
},
lineHeight: 'text',
lineHeight: 1.8,
color: 'black',
paddingX: 1,
paddingY: 1.25,
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Accordion/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const styles = {
outlineColor: {
focusVisible: 'blue',
},
lineHeight: 1,
}),
style({
lineHeight: 'normal',
backgroundColor: 'transparent',
cursor: 'pointer',
padding: 0,
Expand Down
5 changes: 3 additions & 2 deletions src/styles/themes.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ export const fontSize = {
} as const;

export const lineHeight = {
text: '1.8',
heading: '1.3',
1: '1',
1.3: '1.3',
1.8: '1.8',
} as const;

/**
Expand Down

0 comments on commit 23001fb

Please sign in to comment.