Skip to content
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

storaged: set a dark hover background on mobile #19722

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

jelly
Copy link
Member

@jelly jelly commented Dec 8, 2023

The palette black color is grey and causes a white flash when hovering over the storage devices in dark theme.

Closes #19706

Screenshot from 2023-12-08 18-42-57

@jelly jelly requested a review from mvollmer December 8, 2023 17:47
Copy link
Member

@mvollmer mvollmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@@ -334,6 +334,10 @@ a.disabled {
background: var(--pf-v5-global--palette--black-150);
box-shadow: var(--pf-v5-global--BoxShadow--md);
cursor: pointer;

.pf-v5-theme-dark & {
background: var(--ct-color-list-hover-bg);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--ct-color-list-hover-bg is the correct value also for light mode, let's just replace --pf-v5-global--palette--black-150 with it above, no need to have a special case for dark mode.

Copy link
Member

@mvollmer mvollmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

The palette black color is grey and causes a white flash when hovering
over the storage devices in dark theme. The pf color switches color on
hover correctly between dark and light color themes.

Closes cockpit-project#19706
@jelly jelly merged commit 8ad0a30 into cockpit-project:main Dec 11, 2023
91 of 93 checks passed
@jelly jelly deleted the storage-mobile-dark-theme branch December 11, 2023 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hover over storage devices uses the wrong background color on dark theme on mobile/tablet
2 participants