segmentio / evergreen

🌲 Evergreen React UI Framework by Segment
https://evergreen.segment.com
MIT License
12.36k stars 833 forks source link

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

Closed addayounes closed 1 year ago

addayounes commented 1 year ago

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

brandongregoryscott commented 1 year ago

@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