Skip to content

Commit

Permalink
add comment that I accidently deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
broccolinisoup committed Feb 23, 2023
1 parent 9db2c89 commit 0144037
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export function generateCustomSxProp(
props: Partial<Pick<ButtonProps, 'size' | 'block' | 'leadingIcon' | 'trailingIcon' | 'trailingAction'>>,
providedSx: BetterSystemStyleObject,
) {
// Possible data attributes: data-size, data-block, data-no-visuals
const size = props.size && props.size !== 'medium' ? `[data-size="${props.size}"]` : '' // medium is a default size therefore it doesn't have a data attribute that used for styling
const block = props.block ? `[data-block="block"]` : ''
const noVisuals = props.leadingIcon || props.trailingIcon || props.trailingAction ? '' : '[data-no-visuals="true"]'
Expand Down

0 comments on commit 0144037

Please sign in to comment.