Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow disabling the avatar menu #1587

Merged
merged 1 commit into from
Nov 23, 2020
Merged

Conversation

PVince81
Copy link
Contributor

@PVince81 PVince81 commented Nov 19, 2020

Hide clickability from screen reader by not registering the click event when not clickable.

Also hide clickability from screen reader by not registering
the click event when not clickable.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
@PVince81 PVince81 added enhancement New feature or request 3. to review Waiting for reviews labels Nov 19, 2020
@PVince81 PVince81 self-assigned this Nov 19, 2020
@@ -44,7 +44,7 @@
}"
:style="avatarStyle"
class="avatardiv popovermenu-wrapper"
@click="toggleMenu">
v-on="disableMenu ? { click: toggleMenu } : {}">
Copy link
Contributor

Choose a reason for hiding this comment

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

There is also this syntax since 2.6 <div @[event]="handler" /> if you prefer

@PVince81 PVince81 merged commit a9ce0b7 into master Nov 23, 2020
@PVince81 PVince81 deleted the enh/noid/avatar-disablemenu branch November 23, 2020 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants