<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="https://iamkulykov.com/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    
    <title>Serhii Kulykov</title>
    <link>https://iamkulykov.com/</link>
    <atom:link href="https://iamkulykov.com/feed.xml" rel="self" type="application/rss+xml" />
    <description>Serhii Kulykov writes about web components, accessibility and design systems.</description>
    <language>en</language>
    <item>
      <title>A11y Memoirs, episode 2. The Devil is in the Details</title>
      <link>https://iamkulykov.com/blog/a11y-memoirs-02-details/</link><description>&lt;p&gt;Welcome back to A11y Memoirs! This series is based on my personal experience of building accessible components for the Vaadin design system. If you have never heard of Vaadin, I recommend our &lt;a href=&quot;https://github.com/vaadin/web-components&quot;&gt;web components&lt;/a&gt; library on GitHub as a starting point. Recently, we added an accessibility statement to it — do check it out!&lt;/p&gt;
&lt;p&gt;In the &lt;a href=&quot;https://iamkulykov.com/blog/a11y-memoirs-01-button/&quot;&gt;previous episode&lt;/a&gt;, I shared the story of &lt;code&gt;vaadin-button&lt;/code&gt;, showcasing how a seemingly trivial component can be tricky in terms of accessibility. In today&#39;s article, you&#39;ll learn how one line of code can introduce (or fix) a confusing screen reader issue, and why it&#39;s important to pay attention to subtle details.&lt;/p&gt;
&lt;p&gt;Yes, pun intended: this article covers the &lt;code&gt;vaadin-details&lt;/code&gt; custom element, its long misadventures and its relationship to &lt;code&gt;vaadin-accordion&lt;/code&gt;. As the creator of both, I take responsibility for some unintended accessibility caveats. On the positive side, this story illustrates our unwavering commitment to getting accessibility right.&lt;/p&gt;
&lt;h2&gt;Historical background&lt;/h2&gt;
&lt;p&gt;In early 2019, our team put significant effort into delivering a whole batch of new components in Vaadin 13 major release. Back in the day, we didn&#39;t use feature flags and shipped new features in regular major releases, polishing them over time based on feedback. This also meant that breaking changes were almost inevitable.&lt;/p&gt;
&lt;p&gt;For many years, we used the &lt;a href=&quot;https://polymer-library.polymer-project.org/&quot;&gt;Polymer&lt;/a&gt; library to build custom elements and followed its philosophy. In particular, HTML templates of our components were rendered in shadow DOM, with its well-known &lt;a href=&quot;https://alice.pages.igalia.com/blog/how-shadow-dom-and-accessibility-are-in-conflict/&quot;&gt;accessibility limitations&lt;/a&gt; among other implications. Over time, we learned how to get around them — more on that later.&lt;/p&gt;
&lt;p&gt;The original &lt;code&gt;vaadin-details&lt;/code&gt; rendered &lt;a href=&quot;https://github.com/vaadin/vaadin-details/blob/fe64c58b3c27446e93bd750c581647ae665e1dc8/src/vaadin-details.html#L37-L56&quot;&gt;everything&lt;/a&gt; in its shadow DOM: an element with &lt;code&gt;role=&amp;quot;button&amp;quot;&lt;/code&gt; and &lt;code&gt;tabindex&lt;/code&gt;, wrapped in a parent with &lt;code&gt;role=&amp;quot;heading&amp;quot;&lt;/code&gt;. As for accordion, the &lt;code&gt;vaadin-accordion-panel&lt;/code&gt; simply extended &lt;code&gt;vaadin-details&lt;/code&gt;, inheriting its template, styles and ARIA semantics, which were not entirely correct.&lt;/p&gt;
&lt;p&gt;There were good parts, too (pun intended again). Both components were designed with a forward-thinking mindset and tailored for the upcoming &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Shadow_parts&quot;&gt;CSS Shadow Parts&lt;/a&gt;. Exposing summary, toggle and content elements using the &lt;code&gt;part&lt;/code&gt; attribute made them stylable with &lt;code&gt;::part()&lt;/code&gt; once it &lt;a href=&quot;https://dev.to/webpadawan/css-shadow-parts-are-coming-mi5&quot;&gt;finally landed&lt;/a&gt; in evergreen browsers.&lt;/p&gt;
&lt;iframe class=&quot;codepen&quot; title=&quot;CodePen demo&quot; src=&quot;https://codepen.io/web-padawan/embed/yLyPKJP?default-tab=result,css&quot; loading=&quot;lazy&quot;&gt;&lt;/iframe&gt;
&lt;p&gt;&lt;a href=&quot;https://codepen.io/web-padawan/pen/yLyPKJP&quot;&gt;Open the demo on CodePen&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Later in 2019, I worked on a set of prototypes based on the &lt;a href=&quot;https://lit.dev&quot;&gt;Lit&lt;/a&gt; library, which was gaining traction as a Polymer replacement, and explored options for building the &lt;a href=&quot;https://dev.to/webpadawan/the-next-generation-of-vaadin-web-components-34k6&quot;&gt;next generation of Vaadin web components&lt;/a&gt;. Both &lt;code&gt;vaadin-details&lt;/code&gt; and &lt;code&gt;vaadin-accordion&lt;/code&gt; elements were part of this experiment, and we even published a few alpha releases.&lt;/p&gt;
&lt;p&gt;The Lit migration eventually took 5 years and deserves its own story. But the early prototypes were not lost: I showcased them as &lt;code&gt;expansion-panel&lt;/code&gt; and &lt;code&gt;fancy-accordion&lt;/code&gt; in my &lt;a href=&quot;https://dev.to/webpadawan/api-viewer-document-your-web-components-api-p8j&quot;&gt;API Viewer&lt;/a&gt; project. I even received an email praising both as &amp;quot;actually pretty nice&amp;quot; and asking to use them under a permissive license.&lt;/p&gt;
&lt;h2&gt;Vaadin accessibility audit&lt;/h2&gt;
&lt;p&gt;Back to the topic of accessibility: as I mentioned in the previous episode, it has been repeatedly brought up by my colleagues at Vaadin — most notably, our designers. In 2020, we arranged an accessibility kick-off meeting to outline the problems we aimed to solve and to identify product needs, opportunities and pain points.&lt;/p&gt;
&lt;p&gt;What we needed the most was manual testing: the only way to identify the vast majority of accessibility issues in existing components. While we could perform this ourselves and had some internal expertise regarding the WCAG and WAI-ARIA standards, we lacked experience with the most popular assistive technologies.&lt;/p&gt;
&lt;p&gt;Soon it became clear that an external review would guide us in the right direction, so we decided to conduct a third-party audit. I then reached out to &lt;a href=&quot;https://pepelsbey.dev&quot;&gt;Vadim Makeev&lt;/a&gt;, whose Web Standards podcast in Russian I had &lt;a href=&quot;https://youtu.be/yAopxUNaoAs&quot;&gt;joined&lt;/a&gt; earlier, and he recommended &lt;a href=&quot;https://tetralogical.com&quot;&gt;TetraLogical&lt;/a&gt; — a company that needs no introduction in the a11y community.&lt;/p&gt;
&lt;p&gt;Our collaboration with TetraLogical turned out to be a great success. They filed detailed, thorough &lt;a href=&quot;https://github.com/vaadin/web-components/issues?q=is%3Aissue+author%3ATetraLogicalHelpdesk&quot;&gt;issues&lt;/a&gt;, suggested specific fixes and reviewed our prototypes. This resulted in a major overhaul of our components&#39; DOM structure and substantial a11y fixes that landed in Vaadin 22, which I will cover in the next A11y Memoirs episode.&lt;/p&gt;
&lt;h2&gt;ARIA and DOM restructuring&lt;/h2&gt;
&lt;p&gt;At first, we focused on delivering a11y fixes to field components by moving interactive elements from shadow to light DOM, fixing focus handling and ID references. In contrast, details and accordion had relatively few problems — for example, keyboard navigation already worked well. That said, two issues still needed attention.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;https://github.com/vaadin/web-components/issues/152&quot;&gt;first one&lt;/a&gt; only affected one combination: NVDA with Chrome. When toggling the details, the &lt;code&gt;aria-expanded&lt;/code&gt; attribute was correctly updated, but the screen reader didn&#39;t announce the new state. The auditors suspected that the browser lost track of the focused element inside shadow DOM — keep this one in mind, I&#39;ll get back to it.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;https://github.com/vaadin/web-components/issues/90&quot;&gt;second one&lt;/a&gt; was about heading levels: an element with &lt;code&gt;role=&amp;quot;heading&amp;quot;&lt;/code&gt; and no &lt;code&gt;aria-level&lt;/code&gt; is announced as a level 2 heading. Placing &lt;code&gt;vaadin-details&lt;/code&gt; under an &lt;code&gt;&amp;lt;h3&amp;gt;&lt;/code&gt; would break the page heading structure. In fact, only &lt;code&gt;vaadin-accordion-panel&lt;/code&gt; ever needed the heading element, whereas a standalone &lt;code&gt;vaadin-details&lt;/code&gt; did not.&lt;/p&gt;
&lt;p&gt;In Vaadin 24, I &lt;a href=&quot;https://github.com/vaadin/web-components/pull/5093&quot;&gt;re-implemented&lt;/a&gt; the structure of both components, introducing a separate &lt;code&gt;vaadin-details-summary&lt;/code&gt; element that reused most of the button logic via &lt;code&gt;ButtonMixin&lt;/code&gt;. The element with &lt;code&gt;role=&amp;quot;heading&amp;quot;&lt;/code&gt; was removed completely — see &lt;a href=&quot;https://daverupert.com/2019/12/why-details-is-not-an-accordion/&quot;&gt;Why &lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt; is Not an Accordion&lt;/a&gt; by Dave Rupert for more context.&lt;/p&gt;
&lt;p&gt;As for &lt;code&gt;vaadin-accordion&lt;/code&gt;, the same change decoupled &lt;code&gt;vaadin-accordion-panel&lt;/code&gt; from &lt;code&gt;vaadin-details&lt;/code&gt;, which also fixed a long-standing &lt;a href=&quot;https://github.com/vaadin/web-components/issues/412&quot;&gt;issue&lt;/a&gt; with details styles leaking to accordion panels. Now, &lt;code&gt;role=&amp;quot;heading&amp;quot;&lt;/code&gt; is set on the &lt;code&gt;vaadin-accordion-heading&lt;/code&gt; element, and the panel content gets &lt;code&gt;role=&amp;quot;region&amp;quot;&lt;/code&gt; linked with &lt;code&gt;aria-labelledby&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;In the previous episode I mentioned that wrapping a &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt; in shadow DOM is not necessarily wrong. And &lt;code&gt;vaadin-accordion-heading&lt;/code&gt; does exactly that: it renders a &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt; in its shadow DOM and uses &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus&quot;&gt;&lt;code&gt;delegatesFocus&lt;/code&gt;&lt;/a&gt; option supported in all major browsers, including Safari 15 (which is a minimal baseline for Vaadin 24). A heading must not be a button itself, so in this case wrapping is the right choice.&lt;/p&gt;
&lt;h2&gt;The devil is in the details&lt;/h2&gt;
&lt;p&gt;Moving the summary to light DOM was expected to resolve screen reader issues. It did improve focus handling, but toggling still wasn&#39;t announced in NVDA browse mode. Bugs like this, which only affect a certain screen reader, can be hard to investigate. Indeed, the devil is in the details — and this time, quite literally.&lt;/p&gt;
&lt;p&gt;In NVDA browse mode, pressing &lt;kbd&gt;Enter&lt;/kbd&gt; doesn&#39;t send a key event to the page. Instead, NVDA finds the innermost accessible node at the virtual cursor and runs its default action. Our &lt;code&gt;vaadin-details-summary&lt;/code&gt; sets &lt;code&gt;role=&amp;quot;button&amp;quot;&lt;/code&gt; on the host and wraps slotted text with &lt;code&gt;&amp;lt;div part=&amp;quot;content&amp;quot;&amp;gt;&lt;/code&gt; in shadow DOM. When the cursor lands on that generic element, the action does nothing — so the details don&#39;t toggle.&lt;/p&gt;
&lt;p&gt;Sounds familiar? Yes, it&#39;s exactly the same problem that we fixed for the internal &lt;code&gt;vaadin-button&lt;/code&gt; container element in the previous episode. Once the root cause was clear, I realized that &lt;a href=&quot;https://github.com/vaadin/web-components/pull/12971&quot;&gt;the same fix&lt;/a&gt; with &lt;code&gt;role=&amp;quot;presentation&amp;quot;&lt;/code&gt; would resolve the &lt;code&gt;vaadin-details-summary&lt;/code&gt; case as well. So in the latest Vaadin releases, NVDA, JAWS and VoiceOver all correctly announce the expanded and collapsed states.&lt;/p&gt;
&lt;p&gt;The other issue, about &lt;code&gt;aria-level&lt;/code&gt; in accordion panels, was also &lt;a href=&quot;https://github.com/vaadin/web-components/pull/12133&quot;&gt;fixed&lt;/a&gt; quite recently: we added a new &lt;code&gt;headingLevel&lt;/code&gt; property to the &lt;code&gt;vaadin-accordion&lt;/code&gt; element to make the level configurable. With that, both components are now screen reader friendly. There is another minor detail remaining, though — again related to shadow DOM.&lt;/p&gt;
&lt;p&gt;Remember the &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt; used by the accordion heading? Due to the shadow DOM boundary, it can&#39;t use &lt;code&gt;aria-controls&lt;/code&gt; pointing to the panel. Luckily, this can be &lt;a href=&quot;https://github.com/vaadin/web-components/issues/13065&quot;&gt;fixed&lt;/a&gt; using &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/Element/ariaControlsElements&quot;&gt;&lt;code&gt;ariaControlsElements&lt;/code&gt;&lt;/a&gt; property for attribute reflection, part of the &lt;a href=&quot;https://wicg.github.io/aom/aria-reflection-explainer.html&quot;&gt;AOM&lt;/a&gt;. That said, screen reader support for &lt;code&gt;aria-controls&lt;/code&gt; attribute itself is &lt;a href=&quot;https://heydonworks.com/article/aria-controls-is-poop/&quot;&gt;quite limited&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Wrapping up&lt;/h2&gt;
&lt;p&gt;That&#39;s it for the second episode of my A11y Memoirs. I hope you learned something from it — personally, I wish I had known all of this much earlier. Mastering accessibility truly requires continuous effort, and being fully committed is an important part of my career as an engineer. I will make sure to share more lessons learned next time!&lt;/p&gt;
</description><pubDate>Wed, 14 Oct 2026 00:00:00 +0000</pubDate>
      <dc:creator>Serhii Kulykov</dc:creator>
      <guid>https://iamkulykov.com/blog/a11y-memoirs-02-details/</guid>
    </item>
    <item>
      <title>A11y Memoirs, episode 1. The Story of Vaadin Button</title>
      <link>https://iamkulykov.com/blog/a11y-memoirs-01-button/</link><description>&lt;p&gt;Recently, GitHub added highlighting for &lt;a href=&quot;https://github.blog/changelog/2026-10-01-accessibility-statements-highlighted-on-repository-overview/&quot;&gt;accessibility statements&lt;/a&gt; on the repository overview page. While adding &lt;a href=&quot;https://github.com/vaadin/web-components/blob/main/ACCESSIBILITY.md&quot;&gt;&lt;code&gt;ACCESSIBILITY.md&lt;/code&gt;&lt;/a&gt; for Vaadin components, I realized that there&#39;s so much more than just technical facts. I&#39;ve been working at Vaadin for many years, and accessibility support has been a recurring topic brought up by both my colleagues and our customers. And I do have a few stories to tell about it!&lt;/p&gt;
&lt;p&gt;Today, I&#39;m excited to share the first episode of my A11y Memoirs — a series of short blog posts covering challenges that we faced at Vaadin while developing a set of high-quality web components and making them accessible. For me, this journey started even before I joined the company, back when I was an external contributor.&lt;/p&gt;
&lt;p&gt;One of the first components I ever &lt;a href=&quot;https://github.com/vaadin/vaadin-button/pull/29&quot;&gt;contributed to&lt;/a&gt;, more than 9 years ago, was &lt;code&gt;&amp;lt;vaadin-button&amp;gt;&lt;/code&gt;. It was a completely different time, both for the emerging web components ecosystem with its early adopters and for the browser landscape in general. So I&#39;ll take a step back and start with some historical background.&lt;/p&gt;
&lt;h2&gt;Why not a plain old &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt;?&lt;/h2&gt;
&lt;p&gt;Initial versions of Vaadin Elements, like Combo Box, Date Picker and Upload, were inspired by Material Design and used the &lt;code&gt;&amp;lt;paper-button&amp;gt;&lt;/code&gt; Polymer element under the hood. This changed in 2017: while we were establishing a solid foundation for Vaadin Platform 10, our component set rapidly evolved to cover all basic needs.&lt;/p&gt;
&lt;p&gt;Back then, styling components was a challenge due to &lt;code&gt;::part()&lt;/code&gt; being just an early proposal and custom CSS properties not being able to cover all cases. Our team solved this by creating &lt;a href=&quot;https://github.com/vaadin/vaadin-themable-mixin&quot;&gt;ThemableMixin&lt;/a&gt; to inject CSS into components&#39; shadow roots. Our two original Vaadin themes, Lumo and Material, were built on top of it.&lt;/p&gt;
&lt;p&gt;Apart from styling consistency, there were other reasons for not using a &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt;. Some of them were again related to browser limitations: Vaadin 10 supported Safari 9 and IE11, where CSS flexbox had a few known issues. In particular, &lt;a href=&quot;https://github.com/philipwalton/flexbugs#flexbug-9&quot;&gt;Flexbug #9&lt;/a&gt;: it wasn&#39;t possible to make native &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt; a flex container.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://vaadin.com/docs/latest/components/button&quot;&gt;Vaadin Button&lt;/a&gt; supports &lt;code&gt;prefix&lt;/code&gt; and &lt;code&gt;suffix&lt;/code&gt; slots for placing icons and other supplementary content, as well as several shadow DOM parts, &lt;a href=&quot;https://cdn.vaadin.com/vaadin-web-components/25.3.0/elements/vaadin-button/#styling&quot;&gt;state attributes&lt;/a&gt; and &lt;a href=&quot;https://vaadin.com/docs/latest/components/button/styling&quot;&gt;variants&lt;/a&gt;. So the web component is here to stay, and for good reason. That said, Vaadin provides a Java API for the native &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt; element, too.&lt;/p&gt;
&lt;h2&gt;Wrapping a button&lt;/h2&gt;
&lt;p&gt;The original version of &lt;code&gt;vaadin-button&lt;/code&gt; wrapped an internal clickable, absolutely positioned native &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt;. This was a fairly common technique back in the day, when the &lt;a href=&quot;https://polymer-library.polymer-project.org/&quot;&gt;Polymer library&lt;/a&gt; was used to render templates in shadow DOM. There was also a shared &lt;a href=&quot;https://github.com/vaadin/vaadin-control-state-mixin&quot;&gt;ControlStateMixin&lt;/a&gt; used to handle focus, since &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus&quot;&gt;&lt;code&gt;delegatesFocus&lt;/code&gt;&lt;/a&gt; and the &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/:focus-visible&quot;&gt;&lt;code&gt;:focus-visible&lt;/code&gt;&lt;/a&gt; pseudo-class were not yet implemented in browsers.&lt;/p&gt;
&lt;p&gt;By the way, whenever I see a new web component library or design system, one of the first things I check is how they implemented their button component. And yes, some libraries still do wrap a &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt; in different ways. It&#39;s not necessarily wrong now that shadow focus delegation is a thing. Years ago, it didn&#39;t work out for us.&lt;/p&gt;
&lt;p&gt;As part of significant accessibility improvements in Vaadin 22, we re-implemented the button component to use &lt;code&gt;role=&amp;quot;button&amp;quot;&lt;/code&gt; on the host. Later on, its logic was moved to &lt;code&gt;ButtonMixin&lt;/code&gt;, which is shared with a few other similar components. Our &lt;code&gt;vaadin-details&lt;/code&gt; uses it internally, too — and I&#39;ll cover it in a dedicated A11y Memoirs episode!&lt;/p&gt;
&lt;h2&gt;Tooltips and enabled state&lt;/h2&gt;
&lt;p&gt;If you inspect the DOM structure of &lt;code&gt;vaadin-button&lt;/code&gt; in DevTools (another thing I regularly do when exploring new component libraries), you&#39;ll notice that it has a &lt;code&gt;tooltip&lt;/code&gt; slot. This is a common API used in Vaadin for handling &lt;a href=&quot;https://vaadin.com/docs/latest/components/tooltip&quot;&gt;tooltips&lt;/a&gt; attached to different components, which is especially relevant for icon-only buttons.&lt;/p&gt;
&lt;p&gt;While the tooltip itself was added in Vaadin 23.3, it shared a limitation with the native &lt;code&gt;title&lt;/code&gt; attribute: it wasn&#39;t shown for &lt;a href=&quot;https://github.com/vaadin/flow-components/issues/4393&quot;&gt;disabled&lt;/a&gt; buttons. This was recognized as an accessibility problem and moved to a separate &lt;a href=&quot;https://github.com/vaadin/web-components/issues/4585&quot;&gt;enhancement ticket&lt;/a&gt;. Making disabled buttons accessible was a highly requested feature from our customers, and it was eventually implemented by my colleagues in the Design System team.&lt;/p&gt;
&lt;p&gt;In Vaadin 26, disabled buttons will be focusable and hoverable by default, which makes tooltips work and allows application authors to provide an explanation why a button is disabled. You can already enable this behavior in Vaadin 25 with the &lt;code&gt;window.Vaadin.featureFlags.accessibleDisabledButtons&lt;/code&gt; &lt;a href=&quot;https://vaadin.com/docs/latest/components/button#focus-hover&quot;&gt;feature flag&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Other caveats&lt;/h2&gt;
&lt;p&gt;There are a few more a11y memories to share about &lt;code&gt;vaadin-button&lt;/code&gt;. They illustrate the fact that proper accessibility isn&#39;t something you can just fix once: it has to be a continuous commitment from the team and requires attention to detail. This is what I appreciate the most about Vaadin&#39;s approach to UX and quality.&lt;/p&gt;
&lt;p&gt;The first one is about CSS. Vaadin components use a &lt;a href=&quot;https://vaadin.github.io/web-components/baseline.html&quot;&gt;baseline alignment&lt;/a&gt; approach that relies on a &lt;code&gt;::before&lt;/code&gt; pseudo-element with extra whitespace. This can cause unexpected announcements in some screen readers, such as NVDA. We fixed this by setting empty alternative text: &lt;code&gt;content: &#39;&#92;2003&#39; / &#39;&#39;&lt;/code&gt; — check out &lt;a href=&quot;https://www.sitelint.com/blog/hide-content-in-css-pseudo-elements-from-screen-readers&quot;&gt;Hiding content in CSS pseudo elements from screen readers&lt;/a&gt; for an explanation of this technique.&lt;/p&gt;
&lt;p&gt;Another issue causing incorrect announcements involved the internal elements wrapping the &lt;code&gt;prefix&lt;/code&gt; and &lt;code&gt;suffix&lt;/code&gt; slots that I mentioned earlier. To mitigate this, we decided to set &lt;code&gt;aria-hidden&lt;/code&gt; on &lt;a href=&quot;https://github.com/vaadin/web-components/pull/5049&quot;&gt;these elements&lt;/a&gt;. We expect application developers to make sure nothing essential is lost, or provide a meaningful &lt;a href=&quot;https://vaadin.com/docs/latest/components/button#aria-labels&quot;&gt;accessible label&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Finally, an issue discovered and fixed quite recently involved the &lt;code&gt;.vaadin-button-container&lt;/code&gt; element, which again affected NVDA: in browse mode, key presses were not passed to the page. We &lt;a href=&quot;https://github.com/vaadin/web-components/pull/12525&quot;&gt;solved&lt;/a&gt; this in the latest releases of Vaadin 24 and 25 by setting &lt;code&gt;role=&amp;quot;presentation&amp;quot;&lt;/code&gt;. Lesson learned: nested DOM elements in button-like components should be avoided, or handled very carefully.&lt;/p&gt;
&lt;h2&gt;Wrapping up&lt;/h2&gt;
&lt;p&gt;That&#39;s it for the first episode of A11y Memoirs, which turned out to be a bit longer than expected. I&#39;d like to use this opportunity to share my passion for a11y and thank all my colleagues involved in the long process of designing, building and testing inclusive and accessible Vaadin components. Stay tuned for more!&lt;/p&gt;
</description><pubDate>Tue, 06 Oct 2026 00:00:00 +0000</pubDate>
      <dc:creator>Serhii Kulykov</dc:creator>
      <guid>https://iamkulykov.com/blog/a11y-memoirs-01-button/</guid>
    </item>
  </channel>
</rss>