-
Notifications
You must be signed in to change notification settings - Fork 10
DropdownButtonバグ対応&disabled対応 #52
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
Conversation
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です!
ついでに |
@kinokoruumu |
@@ -16,6 +16,9 @@ export const SplitToggle = styled(Button)` | |||
border-left: 1px solid ${({ theme }) => theme.palette.primary.deepDark}; | |||
padding: 0 ${({ theme, size }) => (size === "small" ? 0 : theme.spacing)}px; | |||
min-width: auto; | |||
&:disabled { | |||
border-left: 1px solid ${({ theme }) => theme.palette.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.
nits
色しか変わらないならborder-left-colorでいいかも
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-left-color
だけだとborderが出なかったです!!
&:disabled {
background-color: ${colors.basic[100]};
color: ${({ theme }) => theme.palette.text.disabled};
border: 0;
}
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.
あ、そっか!
styled(Button)
ここ見落としてたごめん!
あーこれ僕が勘で当てた色ですね。 |
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です!
onBlur
の際もonClick
が走るのでfixsplit
なボタンなのにトグル押してもonClick
が走るのでfix