Skip to content

Commit

Permalink
feat(Button): change color of neutral primary button (#7802)
Browse files Browse the repository at this point in the history
h2. Описание

Обновил версию vkui-tokens.
Для компонента Button в состоянии mode="primary" и  appearance="neutral" изменен цвет

h2. Release notes
h2. BREAKING CHANGE
- Button: Изменен цвет компонента в состоянии `mode="primary" `и  `appearance="neutral"`
  ![Switch M3 Dark (4)](https://github.com/user-attachments/assets/9bb3cfb5-7f5a-40bc-9e2b-f6b736861da7)
  • Loading branch information
EldarMuhamethanov authored Oct 24, 2024
1 parent ecdd31a commit 80cae47
Show file tree
Hide file tree
Showing 31 changed files with 69 additions and 65 deletions.
14 changes: 9 additions & 5 deletions packages/vkui/src/components/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,15 @@
}

.modePrimary.appearanceNeutral {
background-color: var(--vkui--color_background_secondary);
background-color: var(--vkui--color_background_content_inverse);
}

.modePrimary.appearanceNeutral.hover {
background-color: var(--vkui--color_background_secondary--hover);
background-color: var(--vkui--color_background_content_inverse--hover);
}

.modePrimary.appearanceNeutral.active {
background-color: var(--vkui--color_background_secondary--active);
background-color: var(--vkui--color_background_content_inverse--active);
}

.modePrimary.appearanceAccentInvariable {
Expand Down Expand Up @@ -308,6 +308,10 @@
color: var(--vkui--color_text_primary);
}

.host.modePrimary.appearanceNeutral {
color: var(--vkui--color_text_contrast_themed);
}

.host.appearanceAccentInvariable {
color: var(--vkui--color_text_accent);
}
Expand Down Expand Up @@ -651,8 +655,8 @@
}

.modePrimary.appearanceNeutral {
--vkui_internal--counter_inherit_background: var(--vkui--color_background_contrast);
--vkui_internal--counter_inherit_color: var(--vkui--color_text_primary_invariably);
--vkui_internal--counter_inherit_background: var(--vkui--color_text_contrast_themed);
--vkui_internal--counter_inherit_color: var(--vkui--color_background_content_inverse);
}

.modeSecondary.appearanceNeutral,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 80cae47

Please sign in to comment.