evergreen icon indicating copy to clipboard operation
evergreen copied to clipboard

Can't use (intent) and (type) property at the same time in <Button> component

Open addayounes opened this issue 3 years ago • 1 comments

when using intent in a button and also specifying a button type (submit | reset | button) this will break the styling of the button, more specifically it will lose it's style on certain state like focused state or blured

addayounes avatar Apr 07 '23 14:04 addayounes

@addayounes Can you provide a CodeSandbox to reproduce this? The focus states seem to be working correctly: https://codesandbox.io/s/issue-1628-button-intent-type-yyddq7?file=/src/App.tsx

brandongregoryscott avatar Apr 08 '23 21:04 brandongregoryscott