<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Parnil Vyawahare</title>
    <description>The latest articles on DEV Community by Parnil Vyawahare (@06vparnil).</description>
    <link>https://dev.to/06vparnil</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4186295%2F78b12f13-1221-4d35-a44b-0a7e16af8eca.png</url>
      <title>DEV Community: Parnil Vyawahare</title>
      <link>https://dev.to/06vparnil</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/06vparnil"/>
    <language>en</language>
    <item>
      <title>One Small Accessibility Fix in VitePress - My First Open-Source PR</title>
      <dc:creator>Parnil Vyawahare</dc:creator>
      <pubDate>Thu, 15 Oct 2026 08:45:13 +0000</pubDate>
      <link>https://dev.to/06vparnil/one-small-accessibility-fix-in-vitepress-my-first-open-source-pr-2nm9</link>
      <guid>https://dev.to/06vparnil/one-small-accessibility-fix-in-vitepress-my-first-open-source-pr-2nm9</guid>
      <description>&lt;p&gt;I’ve spent most of my time building personal projects, so I wanted to try something different: contributing to a real open-source project. For my first contribution, I chose &lt;a href="https://github.com/vuejs/vitepress" rel="noopener noreferrer"&gt;VitePress&lt;/a&gt;, a static site generator powered by Vue. I came across &lt;a href="https://github.com/vuejs/vitepress/issues/5530" rel="noopener noreferrer"&gt;issue #5530&lt;/a&gt;, which reported an accessibility problem with code groups.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding the Problem
&lt;/h2&gt;

&lt;p&gt;VitePress code groups let users switch between alternative code snippets using tabs. For example, a documentation page might show the same configuration in JavaScript and TypeScript.&lt;/p&gt;

&lt;p&gt;Behind the scenes, these tabs use native radio inputs and labels. The problem was that the element wrapping these controls didn’t explicitly identify itself as a radio group or provide an accessible name. This could make it harder for assistive technologies to communicate the relationship between the options.&lt;/p&gt;

&lt;p&gt;At first, it seemed like a small markup issue, but I needed to understand how the renderer generated the HTML and how the client-side code handled tab switching before changing anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Fix
&lt;/h2&gt;

&lt;p&gt;I traced the code-group rendering logic in &lt;code&gt;src/node/markdown/plugins/containers.ts&lt;/code&gt; and checked the tab-switching logic in &lt;code&gt;src/client/app/composables/codeGroups.ts&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;One important detail was that the existing JavaScript depended on the current DOM hierarchy. Adding unnecessary wrapper elements could have broken tab switching.&lt;/p&gt;

&lt;p&gt;I kept the change minimal by adding &lt;code&gt;role="radiogroup"&lt;/code&gt; and &lt;code&gt;aria-label="Code group"&lt;/code&gt; to the existing &lt;code&gt;.tabs&lt;/code&gt; element. I also updated the corresponding unit test and its inline snapshot to verify the new markup while preserving the existing radio inputs, labels, and code panels.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing and What I Learned
&lt;/h2&gt;

&lt;p&gt;I ran the focused code-group tests, followed by the full unit test suite. &lt;strong&gt;All 517 unit tests passed across 32 test files.&lt;/strong&gt; Type checking, formatting checks, and the Git diff integrity check also passed.&lt;/p&gt;

&lt;p&gt;I used AI as a coding assistant to help investigate the unfamiliar codebase and explore possible approaches. However, I treated its suggestions as things to verify, not answers to trust blindly. I inspected the actual implementation and dependencies between components, reviewed the diff, and ran the project's checks.&lt;/p&gt;

&lt;p&gt;One of the harder parts was getting the development tooling working on Windows before I could run the tests. It reminded me that contributing involves more than writing code: understanding the project, respecting its conventions, and verifying changes are equally important.&lt;/p&gt;

&lt;p&gt;This is my first step into open source, and I'm looking forward to learning from the maintainers' feedback. The PR is awaiting review, and I haven't yet performed a live screen-reader accessibility audit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Issue:&lt;/strong&gt; &lt;a href="https://github.com/vuejs/vitepress/issues/5530" rel="noopener noreferrer"&gt;VitePress #5530&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Pull request:&lt;/strong&gt; [Add your PR URL here]&lt;/p&gt;

&lt;p&gt;Thanks to the VitePress maintainers and contributors for building and maintaining an open-source project that developers can learn from and contribute to.&lt;/p&gt;

&lt;h1&gt;
  
  
  opensource #vitepress #accessibility #webdev
&lt;/h1&gt;

</description>
      <category>a11y</category>
      <category>github</category>
      <category>opensource</category>
      <category>vue</category>
    </item>
  </channel>
</rss>
