Skip to content

Commit

Permalink
Switch to div, remove button wording
Browse files Browse the repository at this point in the history
  • Loading branch information
jandrade committed Oct 18, 2024
1 parent de869d0 commit 45abd05
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import caretDownIcon from "@phosphor-icons/core/bold/caret-down-bold.svg";
import {DROPDOWN_ITEM_HEIGHT} from "../util/constants";
import {OptionLabel} from "../util/types";

const StyledButton = addStyle("span");
const StyledDiv = addStyle("div");

type SelectOpenerProps = AriaProps & {
/**
Expand Down Expand Up @@ -161,7 +161,7 @@ export default class SelectOpener extends React.Component<
];

return (
<StyledButton
<StyledDiv
{...sharedProps}
aria-disabled={disabled}
aria-expanded={open ? "true" : "false"}
Expand All @@ -188,7 +188,7 @@ export default class SelectOpener extends React.Component<
style={styles.caret}
aria-hidden="true"
/>
</StyledButton>
</StyledDiv>
);
}
}
Expand Down

0 comments on commit 45abd05

Please sign in to comment.