feat(app-content): Revise sidebar selection and content edge styling#8448
feat(app-content): Revise sidebar selection and content edge styling#8448
Conversation
b00396d to
906656a
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8448 +/- ##
==========================================
+ Coverage 54.55% 54.57% +0.02%
==========================================
Files 106 106
Lines 3439 3441 +2
Branches 1002 1003 +1
==========================================
+ Hits 1876 1878 +2
Misses 1322 1322
Partials 241 241 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
0da4202 to
8e6f9a8
Compare
8e6f9a8 to
5f066e8
Compare
|
What about buttons? |
| @media only screen and (min-width: $breakpoint-mobile) { | ||
| border-inline-start: 1px solid var(--color-border); | ||
| border-start-start-radius: var(--body-container-radius); | ||
| border-end-start-radius: var(--body-container-radius); | ||
| } |
There was a problem hiding this comment.
The border is visible even on the close navigation, and even when there is no navigation at all.
There was a problem hiding this comment.
Also, the color is different on the draft
There was a problem hiding this comment.
The border is visible even on the close navigation, and even when there is no navigation at all.
This part is now fixed
|
Do we keep this design on the older servers as well? |
5f066e8 to
0ba64b4
Compare
| background-color: color-mix(in srgb, var(--color-primary-element) 16%, transparent); | ||
| color: var(--color-main-text) !important; |
There was a problem hiding this comment.
By doing so this is not guaranteed to match accessibility requirements anymore.
Because now foreground color and background color are independent
There was a problem hiding this comment.
the new bg is mostly transparent (84% transparent + 16% primary tint), what shows through is --color-main-background. So the text we render with --color-main-text is still contrasting against --color-main-backgroun mostly which is the designed pair nc guarantees.
From design it should be rounded but within the element not outside. |
58a66a1 to
e38013d
Compare
e38013d to
e361f74
Compare
jancborchardt
left a comment
There was a problem hiding this comment.
Nice! Some feedback:
- The down-arrow icon of sections with a dropdown needs to stay text-color (dark by default) when selected. Currently it switches to white, which worked with the dark background color of selected elements we had before, but doesn’t work anymore.
- The icon of the selected element is not filled. Seems a separate issue as it also doesn’t work on the last version, but it is the case for other Hub apps.
It is, it depends on the app. |
|
@jancborchardt thanks the first item can be resolved.
This though I descoped for it to done desperately. We need to introduce a new active icon slot and implement upstream so it will multiple PRs across multiple apps to use the new slot. |
It's definitely out of scope for this one. |
kra-mo
left a comment
There was a problem hiding this comment.
The rest looks good to me, although I haven't been able to actually test it.
Afaik this is already present in the lib since mail and contacts app already have active/files icon state? -> It is just the files app not implementing it since the sidebar has dynamic elements others app plug into the sidebar in contrast to other apps. Except that is what you meant Fon with the slot, but that one would be specific to the files app, in general the mechanism is there. |
|
Also linking here, |
845ab18 to
3cb42a5
Compare
kra-mo
left a comment
There was a problem hiding this comment.
Could I see how it looks on hover? Looks good in general now :)
|
|
3cb42a5 to
d7264bd
Compare
Main content now has a subtle left divider and rounded left edge next to the navigation. Selected nav and list items use a softly tinted pill instead of a solid primary fill. Signed-off-by: nfebe <fenn25.fn@gmail.com>
d7264bd to
56b94a6
Compare
|
Updated NcListItems and NcButton. |










Screencast
Screencast.From.2026-04-24.20-31-16.webm
Closes #7222