Skip to content

Commit

Permalink
update JavaDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Jan 17, 2025
1 parent b7ff907 commit bc44794
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,17 +344,18 @@ public boolean isDisableOnClick() {
/**
*
* When set to false, prevents any user interaction with the button such as
* clicking, focusing, etc.
* clicking, hovering, etc. It also removes the button from the tab order.
* <p>
* For better accessibility, disabled buttons can be made focusable so that
* screen readers can reach and properly announce them to users, including
* their attached tooltips and popovers. Other interactions such as clicks,
* remain disabled. This behavior is currently experimental and can be
* enabled by setting the following feature flag in your
* {@code vaadin-featureflags.properties}:
* This behavior, however, negatively impacts accessibility, as disabled
* buttons become completely invisible to screen readers. To improve this,
* disabled buttons can be made focusable so that screen readers can reach
* and properly announce them, including their attached tooltips and
* popovers, while clicks remain disabled. This is currently available as an
* experimental feature that can be enabled by explicitly setting the
* following feature flag in your {@code vaadin-featureflags.properties}:
*
* <pre>
* com.vaadin.experimental.focusableDisabledComponents=true
* com.vaadin.experimental.accessibleDisabledButtons = true
* </pre>
*/
@Override
Expand Down

0 comments on commit bc44794

Please sign in to comment.