Commit a24b5f6
committed
Fix admin sidebar scrolling and visual inconsistencies
What:
1. Removes much of the AI styling changes.
2. Changes the custom admin theme to inherit properties from the default theme.
3. Removes the sidebar text color override for mobile.
4. Fixes the issue with the sliding section of the light theme color at the top of the sidebar and ensures the dark theme color extends to the bottom of the sidebar (regardless of browser zoom).
5. Restores the appBar hiding functionality for desktop/large screens.
6. Fixes the issues with the sidebar scrolling by removing the scrolling wrapper and instead overriding the default react-admin sidebar with a custom version that has scrolling indicators that display whenever there is hidden content (either above or below the shown content).
Why:
1. The AI styling changes seem to be unnecessary and to have contributed to the visual inconsistencies/glitches.
2. Custom themes inheriting properties from the default theme is recommended in the React Admin documentation[1].
3. The sidebar text color override for mobile is no longer needed (and causes readability issues) now that the background color is the same for both mobile and desktop.
4. It looks better to have the sidebar be a single consistent color from top to bottom.
5. This keeps the behavior of the appBar the same as it was before the Update storybook PR (Hubs-Foundation#6563)
6. There were two scrolling areas, which caused the scrolling to appear erratic, and the scrolling indicators weren't updated live (live updates ensures that people are always aware when the content can be scrolled and in which direction).
[1] https://marmelab.com/react-admin/doc/3.19/Theming.html#sidebar-customization1 parent a21f8d4 commit a24b5f6
File tree
4 files changed
+311
-331
lines changed- admin/src
- react-components
- styles
- ui
4 files changed
+311
-331
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 84 | + | |
93 | 85 | | |
94 | 86 | | |
95 | 87 | | |
| |||
261 | 253 | | |
262 | 254 | | |
263 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
264 | 308 | | |
265 | 309 | | |
266 | 310 | | |
| |||
328 | 372 | | |
329 | 373 | | |
330 | 374 | | |
331 | | - | |
332 | 375 | | |
333 | 376 | | |
334 | 377 | | |
335 | 378 | | |
336 | | - | |
| 379 | + | |
337 | 380 | | |
| 381 | + | |
338 | 382 | | |
339 | 383 | | |
340 | 384 | | |
| |||
0 commit comments