openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Highlight Text is not displayed - RowSettings

Open Falke-Design opened this issue 5 years ago • 4 comments

OpenUI5 version: 1.93.0

Chrome 92.0.4515.131

https://openui5.hana.ondemand.com/entity/sap.ui.table.Table/sample/sap.ui.table.sample.RowHighlights

Wrong understanding of the usage

~~Steps to reproduce the problem:~~ ~~1. Hover over the Row-Highlight (Not the first four of the example! Scroll down)~~ ~~2. It does not display the highlight text~~

~~What is the expected result?~~ ~~Display the highlight text~~

~~What happens instead?~~ ~~Nothing (Show "Click to Select" for Column selection)~~

image image image

Update

I thought that the highlightText is a hover text that is displayed if the user move the mouse over the highlight. But it is only for accessibility.

getHighlight()

Accessibility support is provided through the associated highlightText property

and

getHighlightText()

Defines the semantics of the highlight property for accessibility purposes.

Falke-Design avatar Aug 12 '21 13:08 Falke-Design

I guess the documentation for the highlight and highlightText properties is not clear enough. It says

... Accessibility support is provided through the associated highlightText property. If the highlight property is set to a value of sap.ui.core.MessageType, the highlightText property does not need to be set because a default text is used. However, the default text can be overridden by setting the highlightText property. In all other cases the highlightText property must be set.

and

Defines the semantics of the highlight property for accessibility purposes.

When the documentation talks about "Accessibility", it refers to screen reader support. The highlightedText property is rendered as invisible text and referenced in the aria-labelledby attribute of the row selection cell. It is not a tooltip or something like that.

image

codeworrior avatar Aug 13 '21 05:08 codeworrior

Yes, I just noticed it too. Maybe in the Doc can be added that it is not a tooltip. Or maybe to use this issue as Feature Requeast to add a Tooltip.

Falke-Design avatar Aug 13 '21 05:08 Falke-Design

There is no support for the tooltip, mainly because it would not be the correct answer in mobile scenarios. It is recommended to add a column that contains details about the state/highlight, if this information is required. The highlight, the visual part of the state, should attract the attention of the user. For screen reader users, for whom visual information is usually not very helpful, it is of course a little different, hence the "highlightText".

image

https://experience.sap.com/fiori-design-web/grid-table/#item-states

JumpNRun avatar Aug 25 '21 09:08 JumpNRun

Oh, about the documentation: I'll add the info to the "highlightText" property that it's only about screen reader support. Thanks for the hint!

JumpNRun avatar Aug 25 '21 09:08 JumpNRun