From 57cbeb154533368bd7e63bc19864249b2db867f3 Mon Sep 17 00:00:00 2001 From: Simon Jentsch Date: Fri, 11 Jul 2025 19:55:17 +0200 Subject: [PATCH 1/2] fix: render bugs --- src/Button/Button.stories.tsx | 8 ++++++++ src/DropdownList/DropdownList.spec.tsx | 0 src/Input/Input.stories.tsx | 8 ++++---- src/SidebarNav/SidebarNavItem.tsx | 1 + src/shared/BaseInput.tsx | 2 +- 5 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 src/DropdownList/DropdownList.spec.tsx diff --git a/src/Button/Button.stories.tsx b/src/Button/Button.stories.tsx index 6570167..4d43af8 100644 --- a/src/Button/Button.stories.tsx +++ b/src/Button/Button.stories.tsx @@ -162,3 +162,11 @@ WithCustomStyles.args = { `, }, }; + +export const Test = () => ( + +
hi
+ + I am a tall box! +
+); diff --git a/src/DropdownList/DropdownList.spec.tsx b/src/DropdownList/DropdownList.spec.tsx new file mode 100644 index 0000000..e69de29 diff --git a/src/Input/Input.stories.tsx b/src/Input/Input.stories.tsx index 0bc8591..4a8e988 100644 --- a/src/Input/Input.stories.tsx +++ b/src/Input/Input.stories.tsx @@ -13,7 +13,7 @@ export default { const ControlledInput = ({ value: valueInitial, ...props }: Omit) => { const [value, setValue] = useState(valueInitial); - return ; + return ; }; const baseStory = (args) => ; @@ -63,13 +63,13 @@ Error.args = { export const MultipleInputs = () => ( - + - + - + diff --git a/src/SidebarNav/SidebarNavItem.tsx b/src/SidebarNav/SidebarNavItem.tsx index 2d10335..296dabf 100644 --- a/src/SidebarNav/SidebarNavItem.tsx +++ b/src/SidebarNav/SidebarNavItem.tsx @@ -14,6 +14,7 @@ export interface SidebarNavItemProps extends ButtonBaseProps { const SidebarNavItemWrapper = styled.li` ${buttonBaseStyles} display: flex; + cursor: pointer; margin: ${getComponentStyle('sidebarNav.item.marginY')} 0; ${getCustomStyles('sidebar.item.styles', 'root')} diff --git a/src/shared/BaseInput.tsx b/src/shared/BaseInput.tsx index a32c46f..c27c88a 100644 --- a/src/shared/BaseInput.tsx +++ b/src/shared/BaseInput.tsx @@ -135,7 +135,7 @@ export function BaseInput

, E extends HTMLElement>( const getCustomStyles = useCustomStyles(`${name}.styles`, customStyles); return ( - + {label && (

- - - - - - - - - - - - - - - - - - - - - - - - - -
-
-

- Game -

-
-
-
-

- Year -

-
-
-
-

- Platform -

-
-
-
-

- Final Fantasy VI -

-
-
-
-

- 1994 -

-
-
-
-

- SNES -

-
-
-
-

- Metal Gear Solid -

-
-
-
-

- 1998 -

-
-
-
-

- PS1 -

-
-
-
-

- The Legend of Zelda: Ocarina of Time -

-
-
-
-

- 1998 -

-
-
-
-

- N64 -

-
-
-
-`; - exports[`Simple table story snapshot 1`] = ` .emotion-0 { box-sizing: border-box; diff --git a/src/TextArea/__snapshots__/TextArea.spec.tsx.snap b/src/TextArea/__snapshots__/TextArea.spec.tsx.snap index a211e54..22f242c 100644 --- a/src/TextArea/__snapshots__/TextArea.spec.tsx.snap +++ b/src/TextArea/__snapshots__/TextArea.spec.tsx.snap @@ -3,6 +3,7 @@ exports[`Render without value 1`] = ` .emotion-0 { box-sizing: border-box; + margin-bottom: clamp(1rem, 0.8571428571428572rem + 0.7142857142857143vw, 1.5rem); } .emotion-1 { @@ -64,6 +65,7 @@ exports[`Render without value 1`] = ` exports[`Show error when an error message is given 1`] = ` .emotion-0 { box-sizing: border-box; + margin-bottom: clamp(1rem, 0.8571428571428572rem + 0.7142857142857143vw, 1.5rem); } .emotion-1 { @@ -164,6 +166,7 @@ exports[`Show error when an error message is given 1`] = ` exports[`Show infotext when available 1`] = ` .emotion-0 { box-sizing: border-box; + margin-bottom: clamp(1rem, 0.8571428571428572rem + 0.7142857142857143vw, 1.5rem); } .emotion-1 { @@ -258,6 +261,7 @@ exports[`Show infotext when available 1`] = ` exports[`Show label when available 1`] = ` .emotion-0 { box-sizing: border-box; + margin-bottom: clamp(1rem, 0.8571428571428572rem + 0.7142857142857143vw, 1.5rem); } .emotion-1 {