Skip to content

NcButton missing text/ariaLabel prop in MainMenu causes console warnings #60235

@ishizakahiroshi

Description

@ishizakahiroshi

Bug description

After updating to Nextcloud 33.0.3, the browser console shows the following warning on every page load:

[WARN] @nextcloud/vue: You need to fill either the text or the ariaLabel props in the button component.
{uid: 'ishizaka', app: '@nextcloud/vue', level: 1, text: undefined, ariaLabel: null, …}

The warning originates from MainMenu.js calling an NcButton component without providing either a text or ariaLabel prop, which are required for accessibility.

Steps to reproduce

  1. Log in to a Nextcloud 33.0.3 instance
  2. Open browser developer tools (F12) → Console tab
  3. Observe the [WARN] @nextcloud/vue warning on every page load

Console output

MainMenu.js:27 [WARN] @nextcloud/vue: You need to fill either the text or the ariaLabel props in the button component.
    {uid: 'ishizaka', app: '@nextcloud/vue', level: 1, text: undefined, ariaLabel: null, …}
log @ index.mjs:44
warn @ index.mjs:62
render @ NcButton-BaZAY-tN.mjs:236
    @ vue.runtime.esm.js:2700
    @ vue.runtime.esm.js:3891
    @ vue.runtime.esm.js:3462
    @ init.js:85
    @ main.js:22

Expected behavior

The NcButton instance in MainMenu.js should include either a text or ariaLabel prop to satisfy the accessibility requirement enforced by @nextcloud/vue.

Environment

Item Value
Nextcloud 33.0.3
PHP 8.3.6
OS Ubuntu 24.04.4 LTS
Browser Chrome 147

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions