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

[GRAV-1370] [BpkOverlay] Add video overlay style #3717

Merged
merged 8 commits into from
Jan 22, 2025
Prev Previous commit
Next Next commit
[GRAV-1370] update example image ratio
kirstybryce committed Jan 21, 2025
commit 01a29fbd0d7c0f2d5abf5ec95c8bf842e6c2de33
4 changes: 2 additions & 2 deletions examples/bpk-component-overlay/examples.js
Original file line number Diff line number Diff line change
@@ -211,7 +211,7 @@ const VideoOverlayExamples = () => {
<BpkImage
src={VIDEO_IMG_SRC}
altText="Sail boat"
aspectRatio={0.6}
aspectRatio={360 / 640}
/>
</BpkOverlay>
<div className={getClassName('bpk-overlay-stories__overlay--name')}>
@@ -227,7 +227,7 @@ const VideoOverlayExamples = () => {
<BpkImage
src={VIDEO_IMG_SRC}
altText="Sail boat"
aspectRatio={0.6}
aspectRatio={360 / 640}
/>
</BpkOverlay>
</BpkOverlay>

Unchanged files with check annotations Beta

root = document?.querySelector(':root');
(root as HTMLElement).style.setProperty('font-size', fontSize);
} catch(e) {
console.error(e);

Check warning on line 43 in .storybook/preview.tsx

GitHub Actions / Build / Build

Unexpected console statement
}
return (
<div>
};
}
onChange = (e: SyntheticEvent<any>, { newValue }: { newValue: string }) => {

Check warning on line 151 in examples/bpk-component-autosuggest/examples.js

GitHub Actions / Build / Build

'SyntheticEvent' is not defined
this.setState({
value: newValue,
});
};
}
onBarClick = (e: SyntheticEvent<any>, { point }: { point: number }) => {

Check warning on line 42 in examples/bpk-component-barchart/hocs.js

GitHub Actions / Build / Build

'SyntheticEvent' is not defined
this.setState({
selectedPoint: point,
});
}
onChange = (
e: SyntheticInputEvent<HTMLElement>,

Check warning on line 141 in examples/bpk-component-fieldset/examples.js

GitHub Actions / Build / Build

'SyntheticInputEvent' is not defined
{ newValue }: { newValue: string },
) => {
this.setState({
}
type FieldsetProps = {
...$Exact<BpkFieldsetProps>,

Check warning on line 198 in examples/bpk-component-fieldset/examples.js

GitHub Actions / Build / Build

'$Exact' is not defined
validStates: Array<mixed>,
};
};
}
onChange = (e: SyntheticInputEvent<HTMLElement>) => {

Check warning on line 232 in examples/bpk-component-fieldset/examples.js

GitHub Actions / Build / Build

'SyntheticInputEvent' is not defined
this.setState({
value: e.target.value,
checked: e.target.checked,
<BpkInfoBannerExpandableState
message="Success alert"
type={ALERT_TYPES.SUCCESS}
action={{title: "Sample Action", callback: () => alert('Hello from action')}}

Check warning on line 200 in examples/bpk-component-info-banner/examples.js

GitHub Actions / Build / Build

Unexpected alert
toggleButtonLabel="View more"
>
{longMessage}
this.state = { dialingCode: '44_uk', value: '' };
}
onChange = (e: SyntheticInputEvent<HTMLElement>) => {

Check warning on line 72 in examples/bpk-component-phone-input/examples.js

GitHub Actions / Build / Build

'SyntheticInputEvent' is not defined
this.setState({ value: e.target.value });
};
onDialingCodeChange = (e: SyntheticInputEvent<HTMLElement>) => {

Check warning on line 76 in examples/bpk-component-phone-input/examples.js

GitHub Actions / Build / Build

'SyntheticInputEvent' is not defined
this.setState({ dialingCode: e.target.value });
};
library we use for it. At some point we plan to replace it, but for now
it won't pass the accessibility test.
*/
it.skip('should not have programmatically-detectable accessibility issues', async () => {

Check warning on line 44 in packages/bpk-component-autosuggest/src/accessibility-test.js

GitHub Actions / Build / Build

Disabled test
const { container } = render(
<BpkAutosuggest
suggestions={suggestions}