Skip to content

[euiScreenReaderOnly] Style causing problem with drag and drop #8672

@JasonStoltz

Description

@JasonStoltz

Describe the bug
An issue (elastic/kibana#213708) was reported in Kibana where a particular rule in the euiScreenReaderOnly styles is causing a weird bug in the UI when placed inside an element with the draggable attribute.

Following a discussion in the #eui channel, it'd be worthwhile to consider updating euiScreenReaderOnly considering some styles are there because of browser inconsistencies that may no longer be true.

The offending part is inset-inline-start: -10000px.

The left: -10000px value was introduced here, in 2021:

These issues are related:

Then in 2022, left was replaced with its logical counterpart inset-inline-start, here:

I would consider adjusting these styles while:

Impact and severity
The problem was fixed in Kibana with a workaround, this is not urgent

Environment and versions

  • EUI version:
  • React version:
  • Kibana version (if applicable):
  • Browser:
  • Operating System:

Minimum reproducible sandbox

To Reproduce

It's easily reproducible, following the instructions in the post, elastic/kibana#213708 (comment) and elastic/kibana#213708 (comment).

Expected behavior

Screenshots

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale-issue(Don't delete - used for automation)

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions