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

refactor!: make reveal button extend vaadin-button #3167

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

web-padawan
Copy link
Member

Description

Replaced button element with vaadin-password-field-button in order to leverage focus-ring styles.
Note, the "eye" icon itself used to show the button is still where it was ([part="reveal-button"]).

Fixes #3139

Type of change

  • Internal breaking change

@web-padawan web-padawan added the a11y Accessibility issue label Dec 9, 2021
@sonarcloud
Copy link

sonarcloud bot commented Dec 9, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication


revealButton.dispatchEvent(e);
expect(e.defaultPrevented).to.be.true;
const event1 = makeSoloTouchEvent('touchend', null, revealButton);
Copy link
Member Author

Choose a reason for hiding this comment

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

As we use gesture events in vaadin-button, a manually created CustomEvent was causing errors.

Comment on lines +30 to +32
:host::after {
display: none;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

I had to set overflow: visible in order to let the scale(1.5) styles work properly.
This caused the ripple to be very wide, so for now I decided to disable it 🙈

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with platform 23.0.0.alpha1 and is also targeting the upcoming stable 23.0.0 version.

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

Successfully merging this pull request may close these issues.

[password-field] Update reveal button to extend Button and set outline using focus-ring
3 participants