Repository navigation
[Button] Improve readability of permission-disabled buttons - #1862
vivekmaurya001 wants to merge 4 commits into
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Maanvi212006
left a comment
There was a problem hiding this comment.
Can you attach a short screen recording or before/after screenshots of the whole permissions page in light and dark mode, including Export Design / Manage Roles buttons ? Removing the shield's opacity affects them too, and the goal is that the native button looks identical to those.
Maanvi212006
left a comment
There was a problem hiding this comment.
Also, please add sign-off to the commit. You can follow the steps on this page to do so.
|
@Maanvi212006 please check, I have removed affects on others and included the video |
There was a problem hiding this comment.
looks good! the text is readable in light now in light mode.
-
resolve the DCO failure
-
open an issue to apply the same fix to "Create Workspace" and "Manage Organizations (Needs AnyOf)" button on this page.
leecalcote
left a comment
There was a problem hiding this comment.
Thanks @vivekmaurya001 for picking up #1805, the before/after recordings make the improvement easy to see, and merging the caller's sx (array or object) rather than overwriting it is careful work.
Things to address:
- The DCO check is failing. Could you sign off your commits (
git commit --amend -sorgit rebase --signoff) and force-push? - The override only applies in light mode. If dark mode has the same readability issue, it would be nice to handle both, otherwise a short comment explaining why dark mode is excluded helps future readers (inline note).
- The title could be more descriptive, for example
[Button] Improve readability of permission-disabled buttons. - There is an outstanding changes-requested review; please make sure those points are addressed too.
| disabled | ||
| sx={[ | ||
| (theme) => | ||
| theme.palette.mode === 'light' |
There was a problem hiding this comment.
Is dark mode intentionally left unchanged? If disabled text is also hard to read there, using a single token that works in both modes (rather than branching on palette.mode) would keep the two themes in parity. If light-only is intentional, a one-line comment here would help.
There was a problem hiding this comment.
@leecalcote dark mode texts are readable hence currently i have maded changes related to light mode specifically
df453df to
f87024f
Compare
Signed-off-by: vivekmaurya001 <vm8118134@gmail.com>
Signed-off-by: vivekmaurya001 <vm8118134@gmail.com>
Signed-off-by: vivekmaurya001 <vm8118134@gmail.com>
f87024f to
cea1654
Compare
Signed-off-by: vivekmaurya001 <vm8118134@gmail.com>
|
@Maanvi212006 @leecalcote I have resolved DCO issue and added an inline comment explaining that this fix targets the light-mode issue reported in #1805 and preserves existing dark-mode styling. |
|
@Maanvi212006 I created another similar PR for this page. |
|
Tracked in #1869 |
Notes for Reviewers
This PR fixes #1805
removed extra fading and maded disabled button text darker
Before
Screencast from 2026-10-09 11-54-11.webm
After
Screencast from 2026-10-09 11-53-31.webm
Signed commits
Summary by CodeRabbit