-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui5-link): introduce reactive area size property (#10762)
A new enumeration property called "interactiveAreaSize" is now added. It is designed to make links easier to activate and helps meet the _WCAG 2.2 Target Size_ requirement. The property is applicable only for the _SAP Horizon_ themes. The interactive area should be sufficiently large to help users avoid accidentally selecting (clicking or tapping) on unintended UI elements. There are two possible values for this property: `Normal` and `Large`: - The default value is `Normal` and it implies no change in the visualization and behavior of the interactive elements. - The second option is `Large`. In this case the height of the interactive target area is increased. This option should be used when the interactive element is displayed as an overlay on top of other interactive parts of the page.
- Loading branch information
Showing
9 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* Defines the area size around the component that the user can select. | ||
* | ||
* @public | ||
* @since 2.8.0 | ||
*/ | ||
enum InteractiveAreaSize { | ||
|
||
/** | ||
* The default target area size (the area taken by the component itself without any extra invisible touch area). | ||
* @public | ||
*/ | ||
Normal = "Normal", | ||
|
||
/** | ||
* Enlarged target area size (up to 24px in height) provides users with an enhanced dedicated space to interact with the component. | ||
* @public | ||
*/ | ||
Large = "Large", | ||
} | ||
|
||
export default InteractiveAreaSize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters