ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[SF-ACC][DynamicPage]: field is partly visible when using tab key

Open tandan0813 opened this issue 1 year ago • 6 comments

Describe the bug

This issue is related with: https://github.com/SAP/ui5-webcomponents/issues/10847 and has been partly fixed. Please see the isolated example: https://stackblitz.com/edit/github-zkdxeksd?file=src%2FApp.tsx,package.json

When tab to Textarea, the textarea is not fully visible:

Image

When tab back, the input box is not fully visible:

Image

Isolated Example

https://stackblitz.com/edit/github-zkdxeksd?file=src%2FApp.tsx,package.json

Reproduction steps

Expected Behaviour

Keyboard focus scrolls to view and the full focus indicator is visible

Screenshots or Videos

No response

UI5 Web Components for React Version

2.11.0

UI5 Web Components Version

2.11.0

Browser

Chrome

Operating System

No response

Additional Context

No response

Relevant log output


Organization

No response

Declaration

  • [x] I’m not disclosing any internal or sensitive information.

tandan0813 avatar Jun 11 '25 11:06 tandan0813

Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.

Lukas742 avatar Jun 11 '25 12:06 Lukas742

Hello @SAP/ui5-webcomponents-topic-p ,

Please check if the floating footer above some of the content of the DynamicPage can be avoided.

Kind regards, 

Georgi

SAPUI5 | SAP Development Support

Valkanister avatar Jun 12 '25 12:06 Valkanister

Hi @tandan0813,

I've investigated this issue and found that this is actually native browser behavior, not a bug specific to UI5 Web Components.

When tabbing through elements in any scrollable container, browsers only ensure partial visibility. The browser considers an element "in view" if any part of it is visible, but doesn't guarantee that the entire element including its focus indicator will be fully visible. This is standard behavior that affects all scrollable containers in web applications.

The DynamicPage component is already doing what it can by setting scroll-padding-block-start and scroll-padding-block-end based on the header state.

In this specific case with text inputs and textareas, the browser ensures only the caret is visible, and if there's enough space, it shows that portion of the element.

I'll be closing this issue however, please feel free to reopen it if you have any further questions or if there's something specific I might have missed.

NakataCode avatar Jun 13 '25 11:06 NakataCode

This issue has been closed. To reopen, just leave a comment!

github-actions[bot] avatar Jun 13 '25 11:06 github-actions[bot]

Hi, could you please help reopen this issue since A11y central team confirmed it’s a violation. The same thing is happening here even though this is not a text area, the focused element is still hidden by the object header even when collapsed

Image

tandan0813 avatar Sep 18 '25 02:09 tandan0813

This issue has been closed. To reopen, just leave a comment!

github-actions[bot] avatar Oct 08 '25 21:10 github-actions[bot]