-
Notifications
You must be signed in to change notification settings - Fork 0
fix: UI audit Chunk 5 — low severity token and a11y fixes #24
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
Changes from all commits
868f05f
1c93965
1a6e34f
126cd89
238a181
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,7 +77,7 @@ | |
| } | ||
|
|
||
| .Positioner { | ||
| z-index: 120; | ||
| z-index: var(--ov-z-popup, 120); | ||
| } | ||
|
|
||
| .Popup { | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -49,7 +49,7 @@ | |||||||||||||||||||
| } | ||||||||||||||||||||
|
|
||||||||||||||||||||
| .Root:is([disabled], [data-disabled]) { | ||||||||||||||||||||
| opacity: 0.45; | ||||||||||||||||||||
| opacity: var(--ov-opacity-disabled, 0.45); | ||||||||||||||||||||
| cursor: not-allowed; | ||||||||||||||||||||
| } | ||||||||||||||||||||
|
Comment on lines
51
to
54
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Search for --ov-opacity-disabled definition in the codebase
rg -n '--ov-opacity-disabled\s*:' --type cssRepository: omniviewdev/ui Length of output: 485 🏁 Script executed: #!/bin/bash
# Search for --ov-opacity-disabled definition (correct syntax)
echo "=== Searching for --ov-opacity-disabled definition ==="
rg '\-\-ov-opacity-disabled\s*:' --type css
echo ""
echo "=== Searching for --ov-opacity-disabled usage ==="
rg '\-\-ov-opacity-disabled' --type css
echo ""
echo "=== Searching for CSS variable patterns with fallbacks ==="
rg 'var\([^,)]+,' --type css | head -20
echo ""
echo "=== Checking Button.module.css for context ==="
cat packages/base-ui/src/components/button/Button.module.css 2>/dev/null || echo "File not found, searching for it..."Repository: omniviewdev/ui Length of output: 10569 Add fallback value for The CSS variable Affected files:
♻️ Suggested fix .Root:is([disabled], [data-disabled]) {
- opacity: var(--ov-opacity-disabled);
+ opacity: var(--ov-opacity-disabled, 0.5);
cursor: not-allowed;
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||
|
|
||||||||||||||||||||
|
|
||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,7 +77,7 @@ | |
| } | ||
|
|
||
| .Positioner { | ||
| z-index: 120; | ||
| z-index: var(--ov-z-popup, 120); | ||
| } | ||
|
|
||
| .Popup { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ | |
| } | ||
|
|
||
| .Positioner { | ||
| z-index: 120; | ||
| z-index: var(--ov-z-popup, 120); | ||
| } | ||
|
|
||
| .Popup { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ | |
| } | ||
|
|
||
| .Positioner { | ||
| z-index: 120; | ||
| z-index: var(--ov-z-popup, 120); | ||
| } | ||
|
|
||
| .Popup { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -148,7 +148,7 @@ | |
| } | ||
|
|
||
| .Positioner { | ||
| z-index: 120; | ||
| z-index: var(--ov-z-popup, 120); | ||
| } | ||
|
|
||
| .Popup { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -120,7 +120,7 @@ | |
| } | ||
|
|
||
| .Root:is([data-disabled], [disabled]) { | ||
| opacity: 0.45; | ||
| opacity: var(--ov-opacity-disabled, 0.45); | ||
| cursor: not-allowed; | ||
|
Comment on lines
122
to
124
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "Definitions of --ov-opacity-disabled:"
rg -nP -- '--ov-opacity-disabled\s*:' || true
echo
echo "Usages of --ov-opacity-disabled:"
rg -nP -- 'var\(--ov-opacity-disabled\b'Repository: omniviewdev/ui Length of output: 2546 Add fallback values to The Affected files:
For the Radio component specifically: .Root:is([data-disabled], [disabled]) {
- opacity: var(--ov-opacity-disabled);
+ opacity: var(--ov-opacity-disabled, 0.5);
cursor: not-allowed;
}Apply the same fix to all other disabled-state declarations in the base-ui suite. 🤖 Prompt for AI Agents |
||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.