Commit 311da35
fix(ego-lint): expand CSS shell-class list from GNOME Shell SCSS source (#57)
## Summary
- Cross-referenced `KNOWN_SHELL_CLASSES` in `check-css.py` against GNOME
Shell's canonical SCSS widget files to add 13 missing shell classes
across 6 categories
- Added compound selector detection to `check_shell_class_override` to
avoid false positives on `.shell-class.my-ext-class` patterns
- Added test fixture and assertions for the new classes
### Classes added
| Category | Classes | SCSS Source |
|----------|---------|-------------|
| Panel | `panel-status-indicators-box`, `clock-display` | `_panel.scss`
|
| Popup menu | `popup-status-menu-item`, `panel-menu`, `background-menu`
| `_popovers.scss`, `popupMenu.js` |
| Overview | `window-picker`, `window-caption`, `window-close` |
`_window-picker.scss` |
| Dash / app grid | `dash-background`, `overview-icon`, `icon-grid`,
`app-folder` | `_dash.scss`, `_app-grid.scss` |
| Dialogs | `modal-dialog` | `_dialogs.scss` |
| Also from prior commit | `popup-menu-content`, `popup-menu-arrow`,
`popup-menu-boxpointer`, `popup-menu-icon`, `popup-menu-ornament`,
`popup-inactive-menu-item`, `popup-ornamented-menu-item`,
`quick-settings-grid`, `quick-menu-toggle`, `quick-toggle-menu`,
`quick-slider`, `notification-banner`, `calendar`, `events-button`,
`workspace-background`, `workspace-thumbnails`, `osd-window`, `slider` |
various |
### Note on issue scope
`.popup-menu-container` and `.popup-menu-box` (mentioned in #44) are
**not** standard GNOME Shell theme classes. They are custom classes the
media-controls extension adds to its own widgets
(`PanelButton.js:178,232`). Adding them to `KNOWN_SHELL_CLASSES` would
create false positives for extensions using these as their own class
names. The field test report was mistaken about their origin.
## Test plan
- [x] `bash tests/run-tests.sh` — all assertions pass
- [x] Fixture `css-shell-classes-extra@test` verifies new overrides
detected and compound selectors exempted
- [x] Added fixture coverage for panel (`panel-status-indicators-box`)
and window-picker (`window-caption`) categories
Closes #44
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9d6654a commit 311da35
File tree
3 files changed
+46
-10
lines changed- skills/ego-lint/scripts
- tests
- fixtures/css-shell-classes-extra@test
3 files changed
+46
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | | - | |
| 38 | + | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
41 | 43 | | |
42 | | - | |
43 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | | - | |
| 48 | + | |
46 | 49 | | |
47 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
22 | 47 | | |
23 | 48 | | |
24 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
604 | 609 | | |
605 | 610 | | |
606 | 611 | | |
| |||
0 commit comments