diff --git a/src/Button/Button.tsx b/src/Button/Button.tsx index c3b8d1707cb..f0f3d12fe01 100644 --- a/src/Button/Button.tsx +++ b/src/Button/Button.tsx @@ -75,8 +75,6 @@ export function generateCustomSxProp( // We need to make sure we add the data attributes to the base css class (& -> &[data-attributename="value"]]) otherwise sx styles are applied due to data attribute has more specificity than class selector const cssSelector = `&${size}${block}${noVisuals}` // &[data-size="small"][data-block="block"][data-no-visuals="true"] - // we need to override it with the same specificty - const customSxProp: { [key: string]: BetterSystemStyleObject } = {}