-
Couldn't load subscription status.
- Fork 150
Open
Description
The segmented button is using RMWC theme. Instead the theme of the button should fit with the rest of our theme in the application.
Theme prop set with "secondary":
Notice that in this case, the text color is correct but background color is still RMWC themed.
Example:
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@rmwc/segmented-button": "14.3.5",
}
import { Segment, SegmentedButton } from '@rmwc/segmented-button';
export const ViewSwitch = () => {
return (
<SegmentedButton selectType="single">
<Segment
label="Kortvisning"
theme="secondary"
/>
<Segment
label="Listevisning"
theme="secondary"
/>
</SegmentedButton>
);
};
Metadata
Metadata
Assignees
Labels
No labels