From dd293b21a4f794114c80fe3baaff2e717f770461 Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Fri, 16 Feb 2024 15:07:35 +0100 Subject: [PATCH 1/6] fix: chip default margins --- components/chip/src/chip.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/components/chip/src/chip.js b/components/chip/src/chip.js index c349c509cb..cf4249e585 100644 --- a/components/chip/src/chip.js +++ b/components/chip/src/chip.js @@ -100,10 +100,10 @@ const Chip = ({ @@ -113,8 +113,6 @@ const Chip = ({ Chip.defaultProps = { dataTest: 'dhis2-uicore-chip', marginBottom: 4, - marginLeft: 4, - marginRight: 4, marginInlineStart: 4, marginInlineEnd: 4, marginTop: 4, From 1e297f70084b920795e0660d6ae17c4c51f8b5ee Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Fri, 16 Feb 2024 15:14:35 +0100 Subject: [PATCH 2/6] fix: sharing dialog story, remove invalid comment --- components/sharing-dialog/src/sharing-dialog.stories.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/sharing-dialog/src/sharing-dialog.stories.js b/components/sharing-dialog/src/sharing-dialog.stories.js index 96b263f74e..72181e4479 100644 --- a/components/sharing-dialog/src/sharing-dialog.stories.js +++ b/components/sharing-dialog/src/sharing-dialog.stories.js @@ -265,7 +265,7 @@ export const RTL = (args) => { ) } -// Have this be the primary story on the docs page + RTL.parameters = { docs: { disable: false, source: { type: 'dynamic' } }, } From c09a69c47b8d9c0908ec79fee87a485853111a3d Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Fri, 16 Feb 2024 15:15:08 +0100 Subject: [PATCH 3/6] fix: transfer icons style placement --- components/transfer/src/icons.js | 150 +++++++++++++++---------------- 1 file changed, 71 insertions(+), 79 deletions(-) diff --git a/components/transfer/src/icons.js b/components/transfer/src/icons.js index b39d47ff7f..ddbda732c4 100644 --- a/components/transfer/src/icons.js +++ b/components/transfer/src/icons.js @@ -13,31 +13,29 @@ const centerButtonStyles = css` ` export const IconAddAll = ({ dataTest, disabled }) => ( - <> -
- - - +
+ + + - - - -
+ + + - +
) IconAddAll.propTypes = { @@ -46,21 +44,19 @@ IconAddAll.propTypes = { } export const IconAddIndividual = ({ dataTest, disabled }) => ( - <> -
- - - -
+
+ + + - +
) IconAddIndividual.propTypes = { @@ -69,33 +65,31 @@ IconAddIndividual.propTypes = { } export const IconRemoveAll = ({ dataTest, disabled }) => ( - <> -
- - - +
+ + + - - - -
+ + + - +
) IconRemoveAll.propTypes = { @@ -104,24 +98,22 @@ IconRemoveAll.propTypes = { } export const IconRemoveIndividual = ({ dataTest, disabled }) => ( - <> -
- - - -
+
+ + + - +
) IconRemoveIndividual.propTypes = { From 0407bdfc738f73eabcb305bfd6df476bd4792be6 Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Fri, 16 Feb 2024 15:26:01 +0100 Subject: [PATCH 4/6] fix: rotate chevron in menu --- components/menu/src/menu-item/menu-item.stories.js | 11 +++++++++++ components/menu/src/menu-item/menu-item.styles.js | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/components/menu/src/menu-item/menu-item.stories.js b/components/menu/src/menu-item/menu-item.stories.js index ff4607aa06..3f1464a714 100644 --- a/components/menu/src/menu-item/menu-item.stories.js +++ b/components/menu/src/menu-item/menu-item.stories.js @@ -166,3 +166,14 @@ SubMenus.parameters = { }, }, } + +export const RTLSuffixAndChevron = (args) => ( +
+