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:
@@ -226,7 +226,11 @@ export const WithLargeFont: Story = {
|
||||
decorators: [
|
||||
(Story) => {
|
||||
useEffect(() => {
|
||||
const originalFontSize = getComputedStyle(document.documentElement).fontSize;
|
||||
document.documentElement.style.setProperty("font-size", "36px");
|
||||
return () => {
|
||||
document.documentElement.style.setProperty("font-size", originalFontSize);
|
||||
};
|
||||
}, []);
|
||||
return <Story />;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user