From 953832a3cff0e03082afd778cbe07ae084ba4ef5 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 24 Jun 2026 16:24:37 +0200 Subject: [PATCH] fix(NcEllipsisedOption): make sure accessible name is properly computed The component uses `display: flex` and then splits a string, e.g. "longvaluename" is split like "'longva' 'luname'". Because of `display: flex` this is considered two different strings instead of one, so the accessible name is now: "longva luname" If `display: inline` is used its calculated correctly, but even with `inline-flex` it does not work as browsers still consider this now two elements instead of one inline. The solution is to hide the visual separated elements from the accessibility tree and use a non-visual element that just contains the full name. Signed-off-by: Ferdinand Thiessen --- .../NcEllipsisedOption/NcEllipsisedOption.vue | 3 +++ tests/component/components/NcSelect.spec.ts | 25 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tests/component/components/NcSelect.spec.ts diff --git a/src/components/NcEllipsisedOption/NcEllipsisedOption.vue b/src/components/NcEllipsisedOption/NcEllipsisedOption.vue index be0aa4abcf..7204c9b7eb 100644 --- a/src/components/NcEllipsisedOption/NcEllipsisedOption.vue +++ b/src/components/NcEllipsisedOption/NcEllipsisedOption.vue @@ -68,13 +68,16 @@ export default {