diff --git a/src/components/Button.res b/src/components/Button.res index 903ef9741..e671b6870 100644 --- a/src/components/Button.res +++ b/src/components/Button.res @@ -420,13 +420,7 @@ let make = ( } } - let heightClass = customHeightClass->Option.getOr({ - switch buttonSize { - | XSmall => "h-fit" - | Small => "h-fit" - | Medium | Large => "h-fit" - } - }) + let heightClass = customHeightClass->Option.getOr("h-fit") let cursorType = switch buttonState { | Loading => "cursor-wait" @@ -436,7 +430,7 @@ let make = ( let paddingClass = customPaddingClass->Option.getOr( switch buttonSize { - | XSmall => "py-3 px-4" + | XSmall => "p-2" | Small => switch buttonType { | Pagination => "py-3 px-4 mr-1" @@ -487,13 +481,6 @@ let make = ( | Large => "" } - let eulerIconPadding = switch buttonSize { - | XSmall - | Small => "gap-1" - | Medium - | Large => "" - } - let iconMargin = customIconMargin->Option.getOr( switch buttonSize { | XSmall @@ -728,7 +715,7 @@ let make = ( /> | Euler(iconName) => - + | CustomIcon(element) => @@ -791,7 +778,7 @@ let make = ( | Euler(iconName) => - + | CustomIcon(element) => diff --git a/src/components/DateRangePicker.res b/src/components/DateRangePicker.res index 612a97110..7557913e8 100644 --- a/src/components/DateRangePicker.res +++ b/src/components/DateRangePicker.res @@ -829,7 +829,7 @@ module Base = { text={isMobileView && textHideInMobileView ? "" : buttonText} leftIcon={FontAwesome(calendarIcon)} rightIcon={CustomIcon(iconElement)} - buttonSize=Small + buttonSize=XSmall isDropdownOpen=isDropdownExpandedActual onClick={_ => handleDropdownClick()} iconBorderColor={customborderCSS} diff --git a/src/components/DynamicTable.res b/src/components/DynamicTable.res index 9f414ae47..9c066232c 100644 --- a/src/components/DynamicTable.res +++ b/src/components/DynamicTable.res @@ -473,7 +473,7 @@ let make = ( text="Customize Columns" leftIcon=Button.CustomIcon() buttonType=customizeColumnButtonType - buttonSize=Small + buttonSize=XSmall onClick={_ => setShowColumnSelector(_ => true)} customButtonStyle=customizedColumnsStyle showBorder={true} diff --git a/src/components/LoadedTable.res b/src/components/LoadedTable.res index b4c4b8736..c9329db8f 100644 --- a/src/components/LoadedTable.res +++ b/src/components/LoadedTable.res @@ -890,7 +890,6 @@ let make = ( | None => Array.length > 0}> - // }} @@ -926,7 +925,6 @@ let make = (
//removed "sticky" -> to be tested with master -
- let customizeColumn = { - if !hideRightTitleElement { -