Skip to content

fix(twake-mui): Readable label on a primary Fab in dark mode - #192

Merged
JF-Cozy merged 2 commits into
mainfrom
fix/fab-primary-dark
Nov 2, 2026
Merged

JF-Cozy merged 2 commits into
mainfrom
fix/fab-primary-dark

Conversation

@9clg6

@9clg6 9clg6 commented Oct 22, 2026

Copy link
Copy Markdown

In the dark scheme, a primary Fab drew primary.dark (#46a2ff) on primary.light (#bfdfff): 1.9:1, the label is almost invisible (e.g. the feedback button of @linagora/twake-feedback, linagora/twake-space-chat#566). In dark mode the label now takes primary.contrastText (90% Grey 900): 5.7:1, 5.2:1 on hover. Light mode is unchanged. The dark modes of the argos Fab story show it.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 45a69af2-9bbe-411f-82c0-6e6af9b93b23
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@9clg6
9clg6 force-pushed the fix/fab-primary-dark branch from c012195 to 15dcf5b Compare October 22, 2026 21:17
@9clg6 9clg6 changed the title fix(twake-mui): readable label on a primary Fab in dark mode fix(twake-mui): Readable label on a primary Fab in dark mode Oct 22, 2026
@JF-Cozy

JF-Cozy commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

@9clg6 did you checked with @swanndesign25 ? Besides we should avoid theme exception as much as possible, maybe one var could be ok for both light/dark. I'll ask Swann and go back to you 👍

BTW we must also update cozy-ui the same way.

@JF-Cozy JF-Cozy left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

after multiple tests, we didn't find a better approach, so let's keep this one 👍 Don't forget to do it in cozy-ui too please.

@9clg6

9clg6 commented Oct 27, 2026

Copy link
Copy Markdown
Author

Same fix for cozy-ui: cozy/cozy-ui#2969

@9clg6
9clg6 force-pushed the fix/fab-primary-dark branch from 46dca5f to 05f0526 Compare November 2, 2026 08:18
@JF-Cozy
JF-Cozy merged commit 2c20c3e into main Nov 2, 2026
6 checks passed
@JF-Cozy
JF-Cozy deleted the fix/fab-primary-dark branch November 2, 2026 08:30
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.

2 participants