Storybook: clear font size in room list item story (#32594)
* chore: clean added font size in room list item story * test: fix screenshot
This commit is contained in:
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 24 KiB |
@@ -226,7 +226,11 @@ export const WithLargeFont: Story = {
|
|||||||
decorators: [
|
decorators: [
|
||||||
(Story) => {
|
(Story) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
const originalFontSize = getComputedStyle(document.documentElement).fontSize;
|
||||||
document.documentElement.style.setProperty("font-size", "36px");
|
document.documentElement.style.setProperty("font-size", "36px");
|
||||||
|
return () => {
|
||||||
|
document.documentElement.style.setProperty("font-size", originalFontSize);
|
||||||
|
};
|
||||||
}, []);
|
}, []);
|
||||||
return <Story />;
|
return <Story />;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user