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
fix: Disable selected items when MultiComboBox is disabled #1544
Conversation
Deploy Preview for smarthr-ui ready! Built with commit 8e98aec |
onClick={() => onDelete({ value, label })} | ||
> | ||
<FaTimesCircleIcon | ||
size={11} | ||
color={theme.palette.TEXT_BLACK} | ||
color={disabled ? theme.color.TEXT_DISABLED : theme.color.TEXT_BLACK} |
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.
ボタン側で color
指定あると思うので、color: inherit
の方がよさそう。
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.
onClick={() => onDelete({ value, label })} | ||
> | ||
<FaTimesCircleIcon | ||
size={11} | ||
color={theme.palette.TEXT_BLACK} | ||
color={disabled ? 'inherit' : theme.color.TEXT_BLACK} |
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.
説明不足ですいません。
disabled
ではないときもボタンカラーがあるのでどちらも inherit
でいけます。分岐が不要です。
color={disabled ? 'inherit' : theme.color.TEXT_BLACK} | |
color="inherit" |
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.
@uknmr :aa: 気づかなくてごめんなさい
修正 push しました 🙏
fix: set CircleIcon color to inherit
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:+1:
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 🎉
Related URL
https://smarthr.atlassian.net/browse/SHRUI-390
Overview
What I did
Capture