Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(PPDSC-2702): updated fieldset stories #738

Merged
merged 10 commits into from
Mar 31, 2023
9 changes: 7 additions & 2 deletions e2e/tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
/* eslint-env browser */

import React from 'react';
import {THEME_KEYS} from '../src/test/theme-select-object';

interface StoryType {
default: {
title: string;
decorators: Array<
(
Story: StoryType,
context: {globals: {backgrounds: {value: string}}},
context: {globals: {backgrounds: {value: string}}; name: string},
) => JSX.Element
>;
};
Expand Down Expand Up @@ -76,9 +77,13 @@ export default function showTestcase(theme: string | null) {
.map(Story => (
<>
{story.default.decorators[0](Story, {
name: Story.storyName,
globals: {
backgrounds: {
value: theme === 'dark' ? '#2E2E2E' : '#FFFFFF',
value:
theme === 'dark'
? THEME_KEYS.newskitDark
: THEME_KEYS.newskitLight,
},
},
})}
Expand Down
2 changes: 1 addition & 1 deletion src/assistive-text/assistive-text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const ThemelessAssistiveText = React.forwardRef<
state={state}
role={state === 'invalid' ? 'alert' : undefined}
aria-live={state === 'invalid' ? 'polite' : undefined}
{...textBlockOverrides}
overrides={textBlockOverrides}
{...props}
>
{children}
Expand Down
Loading