Skip to content

navbar inconsistent behaviour  #2085

Open
@tassoman

Description

@tassoman

Describe the bug

Navbar representation is inconsistent between components, hovering them, they produce three different reactions

vp1

Hovering a nav menu link, produces fade to brand color (with no underline for accessibility)

vp2

Hovering socialLinks components produces more contrast, but it's an outgoing link.

vp3

Hovering the title, produce a less contrast. Again, here it's a link should have brand color and underline for accessibility. Lower contrast is not WCAG Level 2 compliant. It happens also for dropdown menu anchors.

Reproduction

Build basic website having this attributes

        socialLinks: [
            { icon: 'github', link: 'https://github.com/'},
        ],
        nav: [
            {
                text: 'dropdown menu',
                items: [
                    {
                        text: 'one', 
                        link: 'https://bing.it/',
                        target: '_blank',
                    },{ 
                        text: 'two',
                        link: 'https://google.it/',
                    },
                ]
            },
            { 
                text: 'internal link', 
                link: 'mypage',
            },
      ],

Expected behavior

I expect every link turning into brand color, with no accessibility issues, no matter the component is.

System Info

System:
    OS: Linux 5.10 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
    CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
    Memory: 11.40 GB / 12.31 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.15.1/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v16.15.1/bin/npm
  npmPackages:
    vitepress: ^1.0.0-alpha.56 => 1.0.0-alpha.56

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a11yRelated to accessibilitystale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions