Skip to content

Will's work on accessibility issues - #85

Merged
erinchambers merged 26 commits into
devfrom
will_a11y
Jul 28, 2026
Merged

Will's work on accessibility issues#85
erinchambers merged 26 commits into
devfrom
will_a11y

Conversation

@wkdewey

@wkdewey wkdewey commented Jul 15, 2026

Copy link
Copy Markdown

No description provided.

fixes #79
revert if this has already been done
@wkdewey wkdewey linked an issue Jul 15, 2026 that may be closed by this pull request
@wkdewey wkdewey linked an issue Jul 16, 2026 that may be closed by this pull request
@wkdewey wkdewey linked an issue Jul 16, 2026 that may be closed by this pull request
@wkdewey wkdewey linked an issue Jul 20, 2026 that may be closed by this pull request
@wkdewey wkdewey changed the title DRAFT Will's work on accessibility issues Will's work on accessibility issues Jul 22, 2026
@wkdewey
wkdewey requested a review from erinchambers July 22, 2026 21:49
@wkdewey
wkdewey changed the base branch from main to dev July 22, 2026 21:49

@erinchambers erinchambers left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question about the empty aria labels for the certainty visualizations (not sure if those are empty to-be-filled-later or if they're for the XSLT to insert values into—let me know!)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wkdewey Do we need to have somebody fill in the empty aria-label attributes? If so, no worries about it here—I can make an issue for it! Just let me know.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why I made empty aria-labels. I will have to look back over my commits.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put the following in the XSLT:

      <xsl:attribute name="aria-label">
        <!-- FID -->
        <xsl:if test="contains(@who,'nar_') and @direct = 'false' and descendant::certainty">
          <xsl:text>free indirect discourse </xsl:text>
        </xsl:if>
        <!-- INDIRECT -->
        <xsl:if test="not(contains(@who,'nar_')) and @direct = 'false' and descendant::certainty">
          <xsl:text>indirect narration </xsl:text>
        </xsl:if>
        <!-- INTRO TO FID -->
        <xsl:if test="(contains(@who,'nar') and not(contains(@who,'nar_'))) and @direct = 'false'">
          <xsl:text>intro to free indirect discourse</xsl:text>
        </xsl:if>
        <xsl:if test="descendant::certainty"><xsl:text>certainty level</xsl:text><xsl:value-of select="replace(certainty/@degree, '\.', ' ')"></xsl:value-of></xsl:if>
      </xsl:attribute>

Looks like it didn't work as intended

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or rather, it worked when there was highlighted text and a certainty level, but it made an empty aria-label where there wasn't highlighted text. There should not be an aria-label on non-highlighted text.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved

@wkdewey

wkdewey commented Jul 23, 2026

Copy link
Copy Markdown
Author

I deleted the empty aria-labels. Looks like I need to fix the xslt too.

@wkdewey wkdewey left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"submitting" so that my pending comments show up

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or rather, it worked when there was highlighted text and a certainty level, but it made an empty aria-label where there wasn't highlighted text. There should not be an aria-label on non-highlighted text.

@wkdewey

wkdewey commented Jul 28, 2026

Copy link
Copy Markdown
Author

I think I've resolved the issues I pointed out in my comments

@erinchambers

Copy link
Copy Markdown

Looks great, thank you!

@erinchambers
erinchambers merged commit ce77940 into dev Jul 28, 2026
@erinchambers
erinchambers deleted the will_a11y branch July 28, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment