feat(NcAppSidebarTab): Redesign active tab as rounded filled pill#8447
feat(NcAppSidebarTab): Redesign active tab as rounded filled pill#8447
Conversation
39f2471 to
9056878
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8447 +/- ##
==========================================
+ Coverage 54.54% 54.57% +0.02%
==========================================
Files 106 106
Lines 3441 3441
Branches 1003 1003
==========================================
+ Hits 1877 1878 +1
+ Misses 1323 1322 -1
Partials 241 241 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9056878 to
1ab6511
Compare
susnux
left a comment
There was a problem hiding this comment.
What about backwards compatibility with old servers?
This likely needs legacy workarounds just like we did with the border rework we recently did. So that apps on e.g. NC32 still have the old design.
|
(I removed the icon and added font-weight to make it closer to the draft on the screenshot)
Another thing that catches my eyes — how it lies on the gray line between the tablist and the tab content. Previously it looked fine to me, but now with the border radius and the gap if feels like the gap is missing between the buttons and the content, or not necessary at all.
Also, I'm not sure what it is supposed to look like with the icon. On the draft there are no icons. With the current size, it looks unbalanced to me, with the icon too close to the top.
cc @kra-mo |
e97cd55 to
6b2a7e2
Compare
6b2a7e2 to
bb2edfc
Compare
Yeah, I see what you mean, some more padding would be nice. |
|
It would be good to have the |
|
@kra-mo What about the other points from above?
|
I was thinking a bit, and honestly, it being wider works in more cases so maybe it's better to just go with that.
It does look better if it's a bit thicker, but 4px is a variable, I'd say maybe 6px (1.5x).
On the bottom, no gap.
Yes, elements with border radius should not hug hard edges. We should add a bit of a gap :) |
bb2edfc to
2bed8ec
Compare
82c1372 to
a83c6d0
Compare
fc14539 to
d2d8645
Compare
susnux
left a comment
There was a problem hiding this comment.
Tested seems to work but please adjust the slot prop or remove
The active sidebar tab now renders as a fully-rounded filled pill with an inset, rounded blue indicator that grows into place when selected, replacing the previous full-width bottom border and bold label treatment. Tabs keep a small gap between each other to eliminate the hover radius artifact, and the tab icon slot now receives the active state so consumers can render filled/outlined icon variants. Signed-off-by: nfebe <fenn25.fn@gmail.com>
d2d8645 to
714a817
Compare
The active sidebar tab now renders as a rounded surface backed by a neutral hover-tone fill, with a wide rounded indicator that grows into place when selected. The icon slot now receives the active state so consumers can render filled/outlined icon variants. Backport of #8447 to stable8. Signed-off-by: nfebe <fenn25.fn@gmail.com>
The active sidebar tab now renders as a fully-rounded filled pill with an inset, rounded blue indicator that grows into place when selected, replacing the previous full-width bottom border treatment on Nextcloud 34+. Older Nextcloud versions keep the legacy border styling. Backport of #8447 to stable8. Signed-off-by: nfebe <fenn25.fn@gmail.com>
The active sidebar tab now renders as a fully-rounded filled pill with an inset, rounded blue indicator that grows into place when selected, replacing the previous full-width bottom border treatment on Nextcloud 34+. Older Nextcloud versions keep the legacy border styling. Backport of #8447 to stable8. Signed-off-by: nfebe <fenn25.fn@gmail.com>






🖼️ Screenshots
Screencast
active-tabs-demo-7520.webm
Closes #7520