Skip to content

Commit

Permalink
Merge pull request #9100 from jeffibm/reduce-structured-list-button-size
Browse files Browse the repository at this point in the history
Reduce the button size from default to small in data table rows
  • Loading branch information
DavidResende0 authored Mar 8, 2024
2 parents fa4888e + fcfffed commit 6e85753
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const MiqTableCell = ({
disabled={item.disabled}
onKeyPress={(e) => cellButtonEvent(item, e)}
tabIndex={0}
size={item.size ? item.size : 'default'}
size={item.size ? item.size : 'sm'}
title={item.title ? item.title : truncateText}
kind={item.kind ? item.kind : 'primary'}
className={classNames('miq-data-table-button', item.buttonClassName)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8886,14 +8886,14 @@ exports[`Reconfigure VM form component should render reconfigure form and click
kind="ghost"
onClick={[Function]}
onKeyPress={[Function]}
size="default"
size="sm"
tabIndex={0}
title="Resize"
>
<button
aria-describedby={null}
aria-pressed={null}
className="miq-data-table-button bx--btn bx--btn--ghost"
className="miq-data-table-button bx--btn bx--btn--sm bx--btn--ghost"
disabled={false}
onBlur={[Function]}
onClick={[Function]}
Expand Down Expand Up @@ -9127,14 +9127,14 @@ exports[`Reconfigure VM form component should render reconfigure form and click
kind="ghost"
onClick={[Function]}
onKeyPress={[Function]}
size="default"
size="sm"
tabIndex={0}
title="Delete"
>
<button
aria-describedby={null}
aria-pressed={null}
className="miq-data-table-button bx--btn bx--btn--ghost"
className="miq-data-table-button bx--btn bx--btn--sm bx--btn--ghost"
disabled={false}
onBlur={[Function]}
onClick={[Function]}
Expand Down Expand Up @@ -11065,14 +11065,14 @@ exports[`Reconfigure VM form component should render reconfigure form and click
kind="ghost"
onClick={[Function]}
onKeyPress={[Function]}
size="default"
size="sm"
tabIndex={0}
title="Cancel Disconnect"
>
<button
aria-describedby={null}
aria-pressed={null}
className="miq-data-table-button bx--btn bx--btn--ghost"
className="miq-data-table-button bx--btn bx--btn--sm bx--btn--ghost"
disabled={false}
onBlur={[Function]}
onClick={[Function]}
Expand Down Expand Up @@ -11214,14 +11214,14 @@ exports[`Reconfigure VM form component should render reconfigure form and click
kind="ghost"
onClick={[Function]}
onKeyPress={[Function]}
size="default"
size="sm"
tabIndex={0}
title="Connect"
>
<button
aria-describedby={null}
aria-pressed={null}
className="miq-data-table-button bx--btn bx--btn--ghost"
className="miq-data-table-button bx--btn bx--btn--sm bx--btn--ghost"
disabled={false}
onBlur={[Function]}
onClick={[Function]}
Expand Down Expand Up @@ -36529,14 +36529,14 @@ exports[`Reconfigure VM form component should render reconfigure form with datat
kind="ghost"
onClick={[Function]}
onKeyPress={[Function]}
size="default"
size="sm"
tabIndex={0}
title="Resize"
>
<button
aria-describedby={null}
aria-pressed={null}
className="miq-data-table-button bx--btn bx--btn--ghost"
className="miq-data-table-button bx--btn bx--btn--sm bx--btn--ghost"
disabled={false}
onBlur={[Function]}
onClick={[Function]}
Expand Down Expand Up @@ -36770,14 +36770,14 @@ exports[`Reconfigure VM form component should render reconfigure form with datat
kind="ghost"
onClick={[Function]}
onKeyPress={[Function]}
size="default"
size="sm"
tabIndex={0}
title="Delete"
>
<button
aria-describedby={null}
aria-pressed={null}
className="miq-data-table-button bx--btn bx--btn--ghost"
className="miq-data-table-button bx--btn bx--btn--sm bx--btn--ghost"
disabled={false}
onBlur={[Function]}
onClick={[Function]}
Expand Down Expand Up @@ -38248,14 +38248,14 @@ exports[`Reconfigure VM form component should render reconfigure form with datat
kind="ghost"
onClick={[Function]}
onKeyPress={[Function]}
size="default"
size="sm"
tabIndex={0}
title="Edit"
>
<button
aria-describedby={null}
aria-pressed={null}
className="miq-data-table-button bx--btn bx--btn--ghost"
className="miq-data-table-button bx--btn bx--btn--sm bx--btn--ghost"
disabled={false}
onBlur={[Function]}
onClick={[Function]}
Expand Down Expand Up @@ -38409,14 +38409,14 @@ exports[`Reconfigure VM form component should render reconfigure form with datat
kind="ghost"
onClick={[Function]}
onKeyPress={[Function]}
size="default"
size="sm"
tabIndex={0}
title="Delete"
>
<button
aria-describedby={null}
aria-pressed={null}
className="miq-data-table-button bx--btn bx--btn--ghost"
className="miq-data-table-button bx--btn bx--btn--sm bx--btn--ghost"
disabled={false}
onBlur={[Function]}
onClick={[Function]}
Expand Down Expand Up @@ -53106,14 +53106,14 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl
kind="ghost"
onClick={[Function]}
onKeyPress={[Function]}
size="default"
size="sm"
tabIndex={0}
title="Resize"
>
<button
aria-describedby={null}
aria-pressed={null}
className="miq-data-table-button bx--btn bx--btn--ghost bx--btn--disabled"
className="miq-data-table-button bx--btn bx--btn--sm bx--btn--ghost bx--btn--disabled"
disabled={true}
onBlur={[Function]}
onClick={[Function]}
Expand Down Expand Up @@ -53344,14 +53344,14 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl
kind="ghost"
onClick={[Function]}
onKeyPress={[Function]}
size="default"
size="sm"
tabIndex={0}
title="Cancel Delete"
>
<button
aria-describedby={null}
aria-pressed={null}
className="miq-data-table-button bx--btn bx--btn--ghost"
className="miq-data-table-button bx--btn bx--btn--sm bx--btn--ghost"
disabled={false}
onBlur={[Function]}
onClick={[Function]}
Expand Down Expand Up @@ -55284,14 +55284,14 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl
kind="ghost"
onClick={[Function]}
onKeyPress={[Function]}
size="default"
size="sm"
tabIndex={0}
title="Disconnect"
>
<button
aria-describedby={null}
aria-pressed={null}
className="miq-data-table-button bx--btn bx--btn--ghost"
className="miq-data-table-button bx--btn bx--btn--sm bx--btn--ghost"
disabled={false}
onBlur={[Function]}
onClick={[Function]}
Expand Down Expand Up @@ -55433,14 +55433,14 @@ exports[`Reconfigure VM form component should render reconfigure sub form and cl
kind="ghost"
onClick={[Function]}
onKeyPress={[Function]}
size="default"
size="sm"
tabIndex={0}
title="Connect"
>
<button
aria-describedby={null}
aria-pressed={null}
className="miq-data-table-button bx--btn bx--btn--ghost bx--btn--disabled"
className="miq-data-table-button bx--btn bx--btn--sm bx--btn--ghost bx--btn--disabled"
disabled={true}
onBlur={[Function]}
onClick={[Function]}
Expand Down
Loading

0 comments on commit 6e85753

Please sign in to comment.