-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
テーブル周りのborder修正 #34
テーブル周りのborder修正 #34
Conversation
const Component = styled.thead` | ||
border-top: ${Size.Border.Small} solid ${colors.basic[300]}; | ||
border-bottom: ${Size.Border.Small} solid ${colors.basic[300]}; | ||
background-color: ${colors.basic[100]}; | ||
`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<thead />
にborderとbackground-colorを持たせたのでコード量が少し減っている
@@ -19,15 +17,11 @@ export const TabItem = styled.li<{ active: boolean; width: string }>` | |||
margin-bottom: -${Size.Border.Small}; /* containerのborderにかぶせるためのネガティブマージン */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あ、ここのおかげでborderが塗りつぶされていたのか...!!
border-left: ${Size.Border.Small} solid ${colors.basic[300]}; | ||
border-top: ${Size.Border.Small} solid ${colors.basic[300]}; | ||
border-right: ${Size.Border.Small} solid ${colors.basic[300]}; | ||
border-bottom: ${({ active }) => | ||
active ? `none` : `${Size.Border.Small} solid ${colors.basic[300]}`}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
basic[300]がpalette上にないんですよね。。。
theme.palette.border
みたいなの作った方が良い気がしている。
@yutaro1031 |
@kinokoruumu https://github.com/voyagegroup/fluct_XDC/issues/28 |
@kinokoruumu スクショとりました(とてもみやすい... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
めっちゃ見やすくなった!
|
||
export type Props = {}; | ||
|
||
const Component = styled.thead` | ||
border-top: ${Size.Border.Small} solid ${colors.basic[300]}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これはgray.lightをbasic[300]に変えるのではなく、テーブルだけボーダーを濃くしたいってことで大丈夫かな?
|
||
export const Divider = styled.hr` | ||
border: none; | ||
margin: 4px 0; | ||
height: 2px; | ||
background-color: ${colors.basic[200]}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
テーブルではないけどこちらも対応?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issueには書かれていないけど、paletteから参照できそうだったのでした。という感じですね!!
ただ、dropdownButtonはRevertされたので、その変更自体も亡くなっております!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backgroundにcolors.basic[300]
が適用されている箇所はいくつかあるのですが、それらにはdivider
を適用していません。
@@ -94,6 +95,7 @@ export const palette: Palette = { | |||
active: colors.blue[100], | |||
hint: colors.blue[50] as string, // TODO | |||
}, | |||
divider: colors.basic[300], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
divider爆誕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コメしたとこ以外はLGTMです!
border-top: ${Size.Border.Small} solid ${({ theme }) => theme.palette.divider}; | ||
border-bottom: ${Size.Border.Small} solid | ||
${({ theme }) => theme.palette.divider}; | ||
background-color: ${colors.basic[100]}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gray.highlight使ってもいい気がする
No description provided.