From f51c97c657a3ba61565859b359a29181c619f447 Mon Sep 17 00:00:00 2001 From: apeet Date: Tue, 4 Feb 2020 09:48:47 -0700 Subject: [PATCH 1/2] Added aria-expanded attribute to the transcript and credit buttons --- packages/content/src/MediaCredits/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/content/src/MediaCredits/index.js b/packages/content/src/MediaCredits/index.js index 1cfbd556..76cc3dc5 100644 --- a/packages/content/src/MediaCredits/index.js +++ b/packages/content/src/MediaCredits/index.js @@ -280,7 +280,7 @@ class MediaCredits extends Component { this.setState({ showDisclaimer: false, showCredits: false, - showTranscript: newState, + showTranscript: newState, }) } @@ -361,6 +361,7 @@ class MediaCredits extends Component { aria-controls={transcriptId} type="button" onClick={this.toggleTranscript} + aria-expanded={this.state.showTranscript} > Credits ) : ( - + Credits )} From 7bed445057e69cc17a6e27d911a78b42fc8d1172 Mon Sep 17 00:00:00 2001 From: apeet Date: Tue, 4 Feb 2020 11:02:19 -0700 Subject: [PATCH 2/2] bumped up version number on the content package --- packages/content/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/content/package.json b/packages/content/package.json index 18d04426..15046b54 100644 --- a/packages/content/package.json +++ b/packages/content/package.json @@ -1,6 +1,6 @@ { "name": "@healthwise-ui/content", - "version": "0.0.12", + "version": "0.0.13", "description": "Shared React UI library to use with Healthwise content.", "main": "index.js", "unpkg": "healthwise-ui.min.js",