Add spacing between items for experimental navigation

Created on 17 December 2023, 6 months ago
Updated 26 January 2024, 5 months ago

The new experimental navigation works well for the most part with Gin, but I think some additional spacing would help separate the currently selected item from others. As-is, if an item is active and you select the item directly adjacent the highlight colors come in contact with each other.

See the attached screenshot comparing the experimental vs original Gin sidebar.

๐Ÿ› Bug report
Status

Fixed

Component

User interface

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @jabeler
  • First commit to issue fork.
  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland saschaeggi Zurich

    That's a good idea, we should at least add a 1px separation ๐Ÿ‘

  • First commit to issue fork.
  • Merge request !343Added margin bottom to menu level-1. โ†’ (Merged) created by Meeni_Dhobale
  • Status changed to Needs review 6 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Meeni_Dhobale

    I added some spacing between top-level menus.

  • Personally, I would go with a bit more space.

    I think 6px would be closer to what the original Gin sidebar spacing is.

    Here's a few screenshots comparing 4px, 6px, and 8px.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Anjali Mehta

    Anjali Mehta โ†’ made their first commit to this issueโ€™s fork.

  • I am unable to apply MR getting this error -

    Checking patch dist/css/layout/navigation.css...
    error: while searching for:
      margin-inline: 0;
    }
    
    .gin--navigation .toolbar-menu__item--level-1 > .toolbar-link:focus {
      outline: none;
      box-shadow: 0 0 0 1px var(--gin-color-focus-border), 0 0 0 4px var(--gin-color-focus);
    
    error: patch failed: dist/css/layout/navigation.css:950
    error: dist/css/layout/navigation.css: patch does not apply
    Checking patch styles/layout/navigation.scss...
    Hunk #1 succeeded at 122 (offset -5 lines).
    Checking patch dist/css/layout/navigation.css...
    error: while searching for:
    }
    
    .gin--navigation .toolbar-menu__item--level-1 {
      margin-bottom: 2px;
    }
    
    .gin--navigation .toolbar-menu__item--level-1 > .toolbar-link:focus {
    
    error: patch failed: dist/css/layout/navigation.css:951
    error: dist/css/layout/navigation.css: patch does not apply
    Checking patch styles/layout/navigation.scss...
    Hunk #1 succeeded at 123 (offset -5 lines).
  • Status changed to RTBC 6 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia divya.sejekan

    Verified the Fix with MR '3409305-add-spacing-between'
    Additional Spacing of 6px is added between the top menus , and looks good

    Testing steps :
    1. Enable Gin theme
    2. Navigate to setting and enable experimental new menu , Save
    3. Verify the admin menu tool bar

    Moving To RTBC++

  • Status changed to Needs work 6 months ago
  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland saschaeggi Zurich

    6px is way to wide and should be reduced to 2px max. Also we should leverage our CSS variables here instead of fixed values.

    Moving back to needs work

  • First commit to issue fork.
  • Status changed to Needs review 5 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia viren18febS

    6px is way to wide and should be reduced to 2px max. Also we should leverage our CSS variables here instead of fixed values.

    Please review.

  • First commit to issue fork.
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia djsagar

    Font variables should be created in legacy.scss

    For example:

    // Spacings
      --ginSpacingTiny: var(--gin-spacing-xxs);
      --ginSpacingXsmall: var(--gin-spacing-xs);
      --ginSpacingSmall: var(--gin-spacing-s);
      --ginSpacingDefault: var(--gin-spacing-m);
      --ginSpacingMedium: var(--gin-spacing-l);
      --ginSpacingLarge: var(--gin-spacing-xl);
      --ginSpacingXlarge: var(--gin-spacing-xxl);
      --ginSpacingXxlarge: var(--gin-spacing-xxxl);
    
  • Status changed to Needs work 5 months ago
  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland saschaeggi Zurich

    Left some code suggestions

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia ehsann_95

    ahsannazir โ†’ made their first commit to this issueโ€™s fork.

  • Status changed to Needs review 5 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia djsagar
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia djsagar

    Applied MR #17 and reviewed changes as per the comment #11

    6px is way to wide and should be reduced to 2px max. Also we should leverage our CSS variables here instead of fixed values.

    it's looks fine, now spacing between items for experimental navigation is 2px.

    For reference:-
    After MR

    RTBC ++

    Wait for maintainer review.

    Thanks!

  • Pipeline finished with Success
    5 months ago
    Total: 327s
    #76084
  • Pipeline finished with Success
    5 months ago
    Total: 237s
    #76085
  • Status changed to RTBC 5 months ago
  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland saschaeggi Zurich
  • Pipeline finished with Success
    5 months ago
    Total: 204s
    #76090
  • Pipeline finished with Success
    5 months ago
    Total: 271s
    #76092
  • Pipeline finished with Success
    5 months ago
    Total: 276s
    #76096
  • Status changed to Fixed 5 months ago
  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland saschaeggi Zurich

    Thanks y'all

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024