-
Notifications
You must be signed in to change notification settings - Fork 130
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: change the text color of disabled controls #2304
Conversation
f71d75d
to
cec0f1c
Compare
BREAKING CHANGE: Text color of disabled Button, Token, TokenInput changed from #a0a0a0 to #808080
cec0f1c
to
c096eeb
Compare
…color # Conflicts: # packages/react-ui/internal/themes/DefaultTheme.ts
а чо, реально это настолько BREAKING CHANGE? |
Мне казалось, что Breaking change это более широкое понятие, не только про апи. Например, у кого-то могут полечь скриншотные тесты в проекте |
This pull request is being automatically deployed with Vercel (learn more). storybook-default – ./packages/react-ui🔍 Inspect: https://vercel.com/reactui/storybook-default/8j1ySpKQphusXmNT6SLqgbz7Q4CX storybook-flat – ./packages/react-ui🔍 Inspect: https://vercel.com/reactui/storybook-flat/8qJrD2JoFmnQtJu56MbFwuKDkQHU storybook-8px – ./packages/react-ui🔍 Inspect: https://vercel.com/reactui/storybook-8px/F7tAu9VCqespZpUCeBVmc9sYZEB4 |
Deployment failed with the following error:
|
ced9233
to
5c5af3f
Compare
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.
Для нескольких тестов обновились скриншоты, хотя на вид они не изменились:
Input/Inputs with different sizes/With long typed text large/ie11/With long typed text.png
Input/Inputs with different sizes/With long typed text large/ie11Flat/With long typed text.png
Попробовал прогнать тест со старым скриншотом, и вроде норм. Надо проверить.
packages/react-ui/components/Select/__stories__/Select.stories.tsx
Outdated
Show resolved
Hide resolved
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.
Вроде все круто. Единственное, я бы предложил немного переименовать переменные:
-
inputPlaceholderDisabledColor
->inputPlaceholderColorDisabled
и подобные, в соответсвии с нашим неписанным соглашением -
textColorDisabledOnDark
->textColorDisabledContrast
субъективно кажется более подходящее название
Во время влития нужно будет засквошить и убрать пометку BREAKING CHANGE. |
…hange-text-color # Conflicts: # packages/react-ui/.creevey/images/Button/disabled combinations/simple/chrome/page - 1.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/chrome/page - 2.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/chrome/page - 3.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/chrome/page - 4.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/chrome/page - 5.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/chromeFlat/page - 1.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/chromeFlat/page - 2.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/chromeFlat/page - 3.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/chromeFlat/page - 4.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/chromeFlat/page - 5.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/firefox/page - 1.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/firefox/page - 2.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/firefox/page - 3.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/firefox/page - 4.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/firefox/page - 5.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/firefoxFlat/page - 1.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/firefoxFlat/page - 2.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/firefoxFlat/page - 3.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/firefoxFlat/page - 4.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/firefoxFlat/page - 5.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/ie11/page - 1.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/ie11/page - 2.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/ie11/page - 3.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/ie11/page - 4.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/ie11/page - 5.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/ie11Flat/page - 1.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/ie11Flat/page - 2.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/ie11Flat/page - 3.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/ie11Flat/page - 4.png # packages/react-ui/.creevey/images/Button/disabled combinations/simple/ie11Flat/page - 5.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/chrome/page - 1.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/chrome/page - 2.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/chrome/page - 3.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/chrome/page - 4.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/chrome/page - 5.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/chromeFlat/page - 1.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/chromeFlat/page - 2.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/chromeFlat/page - 3.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/chromeFlat/page - 4.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/chromeFlat/page - 5.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/firefox/page - 1.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/firefox/page - 2.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/firefox/page - 3.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/firefox/page - 4.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/firefox/page - 5.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/firefoxFlat/page - 1.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/firefoxFlat/page - 2.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/firefoxFlat/page - 3.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/firefoxFlat/page - 4.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/firefoxFlat/page - 5.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/ie11/page - 1.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/ie11/page - 2.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/ie11/page - 3.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/ie11/page - 4.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/ie11/page - 5.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/ie11Flat/page - 1.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/ie11Flat/page - 2.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/ie11Flat/page - 3.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/ie11Flat/page - 4.png # packages/react-ui/.creevey/images/Button/loading combinations/simple/ie11Flat/page - 5.png # packages/react-ui/.creevey/images/Button/text styles reset/chrome.png # packages/react-ui/.creevey/images/Button/text styles reset/chromeFlat.png # packages/react-ui/.creevey/images/Button/text styles reset/firefox.png # packages/react-ui/.creevey/images/Button/text styles reset/firefoxFlat.png # packages/react-ui/.creevey/images/Button/text styles reset/ie11.png # packages/react-ui/.creevey/images/Button/text styles reset/ie11Flat.png # packages/react-ui/.creevey/images/ComboBoxView/input like text/focused first element/chrome/focused first element.png # packages/react-ui/.creevey/images/ComboBoxView/input like text/focused first element/firefox/focused first element.png # packages/react-ui/.creevey/images/ComboBoxView/input like text/focused first element/ie11/focused first element.png # packages/react-ui/.creevey/images/ComboBoxView/input like text/plain/chrome/plain.png # packages/react-ui/.creevey/images/ComboBoxView/input like text/plain/firefox/plain.png # packages/react-ui/.creevey/images/ComboBoxView/input like text/plain/ie11/plain.png # packages/react-ui/.creevey/images/FxInput/with disabled/chrome.png # packages/react-ui/.creevey/images/FxInput/with disabled/firefox.png # packages/react-ui/.creevey/images/FxInput/with disabled/ie11.png # packages/react-ui/.creevey/images/Switcher/disabled/chrome.png # packages/react-ui/.creevey/images/Switcher/disabled/firefox.png # packages/react-ui/.creevey/images/Switcher/disabled/firefoxFlat.png # packages/react-ui/.creevey/images/Switcher/disabled/ie11.png # packages/react-ui/.creevey/images/Switcher/disabled/ie11Flat.png # packages/react-ui/.creevey/images/Textarea/Different states/Focus/chrome/Focus.png # packages/react-ui/.creevey/images/Textarea/Different states/Focus/firefox/Focus.png # packages/react-ui/.creevey/images/Textarea/Different states/Focus/ie11/Focus.png # packages/react-ui/.creevey/images/Textarea/Different states/Typed/chrome/Typed.png # packages/react-ui/.creevey/images/Textarea/Different states/Typed/firefox/Typed.png # packages/react-ui/.creevey/images/Textarea/Different states/Typed/ie11/Typed.png # packages/react-ui/.creevey/images/Textarea/Textarea with length counter/Focus/chrome/Focus.png # packages/react-ui/.creevey/images/Textarea/Textarea with length counter/Focus/ie11/Focus.png # packages/react-ui/.creevey/images/Textarea/Textarea with length counter/FocusAutoresize/chrome/FocusAutoresize.png # packages/react-ui/.creevey/images/Textarea/Textarea with length counter/FocusAutoresize/ie11/FocusAutoresize.png # packages/react-ui/.creevey/images/Textarea/Textarea with length counter/FocusWithHelpClosed/chrome/CounterWithHelp.png # packages/react-ui/.creevey/images/Textarea/Textarea with length counter/FocusWithHelpClosed/ie11/CounterWithHelp.png # packages/react-ui/.creevey/images/Textarea/Textarea with length counter/FocusWithHelpOpened/chrome/CounterWithHelpOpened.png # packages/react-ui/.creevey/images/Textarea/Textarea with length counter/FocusWithHelpOpened/chromeFlat/CounterWithHelpOpened.png # packages/react-ui/.creevey/images/Textarea/Textarea with length counter/FocusWithHelpOpened/ie11/CounterWithHelpOpened.png # packages/react-ui/.creevey/images/Textarea/Textarea with length counter/FocusWithHelpOpened/ie11Flat/CounterWithHelpOpened.png # packages/react-ui/.creevey/images/ThemePlayground/playground/dark theme top/chrome/dark theme top.png # packages/react-ui/.creevey/images/ThemePlayground/playground/dark theme top/firefox/dark theme top.png # packages/react-ui/.creevey/images/ThemePlayground/playground/dark theme top/ie11/dark theme top.png # packages/react-ui/.creevey/images/ThemePlayground/playground/default theme top/chrome/default theme top.png # packages/react-ui/.creevey/images/ThemePlayground/playground/default theme top/firefox/default theme top.png # packages/react-ui/.creevey/images/ThemePlayground/playground/default theme top/ie11/default theme top.png # packages/react-ui/.creevey/images/ThemePlayground/playground/flat theme top/chrome/flat theme top.png # packages/react-ui/.creevey/images/ThemePlayground/playground/flat theme top/firefox/flat theme top.png # packages/react-ui/.creevey/images/ThemePlayground/playground/flat theme top/ie11/flat theme top.png # packages/react-ui/.creevey/images/Tooltip/manual control/call hide after show/chrome/call hide after show.png # packages/react-ui/.creevey/images/Tooltip/manual control/call hide after show/firefox/call hide after show.png # packages/react-ui/.creevey/images/Tooltip/manual control/call hide after show/ie11/call hide after show.png # packages/react-ui/.creevey/images/Tooltip/manual control/call show/chrome/call show.png # packages/react-ui/.creevey/images/Tooltip/manual control/call show/firefox/call show.png # packages/react-ui/.creevey/images/Tooltip/manual control/call show/ie11/call show.png # packages/react-ui/internal/themes/DefaultTheme.ts
1920b89
to
3559acf
Compare
textColorDisabledOnDark -> textColorDisabledContrast inputPlaceholderDisabledColor -> inputPlaceholderColorDisabled selectPlaceholderDisabledColor -> selectPlaceholderColorDisabled textareaPlaceholderDisabledColor -> textareaPlaceholderColorDisabled tokenInputPlaceholderDisabledColor -> tokenInputPlaceholderColorDisabled
Новая переменная тему -
textColorDisabledContrast
. Отвечает за цвет текста на отключённых контролах, у которых есть тёмный фон.Полный список этих контролов:
Button
Select
Switcher
Input
FxInput
CurrencyInput
DateInput
DatePicker
Token
TokenInput
ComboBox
Textarea
fix #2207