From 014403744a197727f15826c657b09fcd1b72f109 Mon Sep 17 00:00:00 2001 From: Armagan Ersoz Date: Thu, 23 Feb 2023 12:26:11 +1000 Subject: [PATCH] add comment that I accidently deleted --- src/Button/Button.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Button/Button.tsx b/src/Button/Button.tsx index 617d6b4e4ea..f4f02ce123b 100644 --- a/src/Button/Button.tsx +++ b/src/Button/Button.tsx @@ -66,6 +66,7 @@ export function generateCustomSxProp( props: Partial>, 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"]'