Skip to content

feat: change NcAppNavigationItem/NcListItem active state design and NcAppContent edge style on Nextcloud 34+#8448

Merged
nfebe merged 1 commit intomainfrom
feat/revise-list-selection-styling
May 4, 2026
Merged

feat: change NcAppNavigationItem/NcListItem active state design and NcAppContent edge style on Nextcloud 34+#8448
nfebe merged 1 commit intomainfrom
feat/revise-list-selection-styling

Conversation

@nfebe
Copy link
Copy Markdown
Contributor

@nfebe nfebe commented Apr 21, 2026

Before After
nc-content-and-nav-before-7222 nc-content-and-nav-before-after png

Screencast

Screencast.From.2026-04-24.20-31-16.webm

Closes #7222

@nfebe nfebe force-pushed the feat/revise-list-selection-styling branch from b00396d to 906656a Compare April 21, 2026 00:42
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.57%. Comparing base (d66bbf6) to head (377667a).
⚠️ Report is 2 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nfebe nfebe force-pushed the feat/revise-list-selection-styling branch 4 times, most recently from 0da4202 to 8e6f9a8 Compare April 27, 2026 07:30
@nfebe nfebe requested review from ShGKme, kra-mo and susnux April 27, 2026 07:35
@nfebe nfebe marked this pull request as ready for review April 27, 2026 07:35
@ShGKme ShGKme added enhancement New feature or request design Design, UX, interface and interaction design labels Apr 27, 2026
@ShGKme ShGKme added this to the 9.7.0 milestone Apr 27, 2026
@nfebe nfebe force-pushed the feat/revise-list-selection-styling branch from 8e6f9a8 to 5f066e8 Compare April 27, 2026 07:49
@ShGKme
Copy link
Copy Markdown
Contributor

ShGKme commented Apr 27, 2026

Counter in the NcListItem is not contrast anymore.

And, if I got the plan correctly, NcListItem was supposed to have the same new design for selected (active) items, wasn't it?

image

@ShGKme
Copy link
Copy Markdown
Contributor

ShGKme commented Apr 27, 2026

What about buttons?

Comment on lines +470 to +474
@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);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The border is visible even on the close navigation, and even when there is no navigation at all.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, the color is different on the draft

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The border is visible even on the close navigation, and even when there is no navigation at all.

This part is now fixed

@ShGKme
Copy link
Copy Markdown
Contributor

ShGKme commented Apr 27, 2026

It looks a bit different from the design draft. Half of the border is visually outside the element and had half-rounded (harp) edges pointed outside.

Design Current
image image

@ShGKme
Copy link
Copy Markdown
Contributor

ShGKme commented Apr 27, 2026

Do we keep this design on the older servers as well?

@nfebe nfebe force-pushed the feat/revise-list-selection-styling branch from 5f066e8 to 0ba64b4 Compare April 27, 2026 08:47
@nfebe
Copy link
Copy Markdown
Contributor Author

nfebe commented Apr 27, 2026

Now
image

Comment on lines +855 to +856
background-color: color-mix(in srgb, var(--color-primary-element) 16%, transparent);
color: var(--color-main-text) !important;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By doing so this is not guaranteed to match accessibility requirements anymore.
Because now foreground color and background color are independent

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@ShGKme
Copy link
Copy Markdown
Contributor

ShGKme commented Apr 27, 2026

Now image

Now it is rounded, but the border is outside the item while in the design it is inside the item.
(IMO, inside looks better)

@susnux
Copy link
Copy Markdown
Contributor

susnux commented Apr 27, 2026

Now it is rounded, but the border is outside the item while in the design it is inside the item.

From design it should be rounded but within the element not outside.

@nfebe
Copy link
Copy Markdown
Contributor Author

nfebe commented Apr 27, 2026

  • Rounded
  • Starts inside
image

@nfebe nfebe force-pushed the feat/revise-list-selection-styling branch 2 times, most recently from 58a66a1 to e38013d Compare April 27, 2026 14:40
@nfebe nfebe requested review from ShGKme and susnux April 27, 2026 14:47
@nfebe
Copy link
Copy Markdown
Contributor Author

nfebe commented Apr 28, 2026

@kra-mo

image

@ShGKme
Copy link
Copy Markdown
Contributor

ShGKme commented Apr 29, 2026

The design seems different in the navigation and list items.
In the list item, it is slightly outside.

NcAppNavigationItem NcListItem
image image

@ShGKme
Copy link
Copy Markdown
Contributor

ShGKme commented Apr 29, 2026

NcAppNavigationItem now has a different hover effect from NcListItems and NcButton.

@nfebe nfebe force-pushed the feat/revise-list-selection-styling branch 2 times, most recently from d7264bd to 56b94a6 Compare April 29, 2026 12:42
@nfebe
Copy link
Copy Markdown
Contributor Author

nfebe commented Apr 29, 2026

Updated NcListItems and NcButton.

@Antreesy Antreesy modified the milestones: 9.7.0, 9.7.1 Apr 30, 2026
Comment thread src/assets/NcAppNavigationItem.scss Outdated
@nfebe nfebe force-pushed the feat/revise-list-selection-styling branch from 56b94a6 to 281ea4d Compare May 4, 2026 12:02
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>
@nfebe nfebe force-pushed the feat/revise-list-selection-styling branch from 281ea4d to 377667a Compare May 4, 2026 14:51
@susnux susnux modified the milestones: 9.7.1, 9.8.0 May 4, 2026
Copy link
Copy Markdown
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I tested no regressions on v33

@nfebe nfebe merged commit b65885c into main May 4, 2026
27 checks passed
@nfebe nfebe deleted the feat/revise-list-selection-styling branch May 4, 2026 15:19
@susnux
Copy link
Copy Markdown
Contributor

susnux commented May 4, 2026

/backport to stable8

@backportbot
Copy link
Copy Markdown

backportbot Bot commented May 4, 2026

The backport to stable8 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable8
git pull origin stable8

# Create the new backport branch
git checkout -b backport/8448/stable8

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 377667a2

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/8448/stable8

Error: Failed to check for changes with origin/stable8: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@ShGKme ShGKme changed the title feat(app-content): Revise sidebar selection and content edge styling feat: change NcAppNavigationItem/NcListItem active state design and NcAppContent edge style on Nextcloud 34+ May 4, 2026
@ShGKme
Copy link
Copy Markdown
Contributor

ShGKme commented May 4, 2026

Renamed for the changelog generation.

nfebe added a commit that referenced this pull request May 4, 2026
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.

Backport of #8448 to stable8.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
nfebe added a commit that referenced this pull request May 4, 2026
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.

Backport of #8448 to stable8.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
nfebe added a commit that referenced this pull request May 5, 2026
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.

Backport of #8448 to stable8.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
backdrop-filter: var(--filter-background-blur, none);
}

&--closed {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks the settings app in server

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But proper fix is to fix the settings app: nextcloud/server#60236

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

When using real images for the icons the styles are now wrong with 34 as the background is no longer primary the color should not be inverted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

design Design, UX, interface and interaction design enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NcAppContent + NcAppNavigationItem + NcListItem] Revise styling

7 participants