Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove material from button component #1199

Merged
merged 17 commits into from Sep 1, 2022
Merged
4 changes: 2 additions & 2 deletions app/src/pages/Button.jsx
Expand Up @@ -29,8 +29,8 @@ function App() {

return (
<div>
<div>
<h4>Disabled</h4>
<h4>Disabled</h4>
<div style={{ display: "flex" }}>
<DxcButton
mode="primary"
label="Custom Button"
Expand Down
Expand Up @@ -6,7 +6,7 @@ const code = `() => {
};

return (
<div>
<div style={{ display: "flex" }}>
<DxcButton
mode="primary"
label="Primary Button"
Expand All @@ -30,7 +30,7 @@ const code = `() => {
}`;

const scope = {
DxcButton
DxcButton,
};

export default { code, scope };
Expand Up @@ -7,7 +7,7 @@ const code = `() => {
};

return (
<div>
<div style={{ display: "flex" }}>
<DxcButton
label="Primary Button"
onClick={onClick}
Expand Down
9 changes: 9 additions & 0 deletions lib/src/button/Button.stories.tsx
@@ -1,5 +1,6 @@
import React from "react";
import DxcButton from "./Button";
import DxcFlex from "./../flex/Flex";
import { BackgroundColorProvider } from "../BackgroundColorContext";
import Title from "../../.storybook/components/Title";
import ExampleContainer from "../../.storybook/components/ExampleContainer";
Expand Down Expand Up @@ -270,5 +271,13 @@ export const Chromatic = () => (
<Title title="Xxlarge margin" theme="light" level={4} />
<DxcButton label="Xxlarge margin" margin="xxlarge" />
</ExampleContainer>
<Title title="Inside a flex" theme="light" level={2} />
<ExampleContainer>
<DxcFlex direction="column" gap="0.75rem">
<DxcButton label="Button" />
<DxcButton label="Button" />
<DxcButton label="Button" />
</DxcFlex>
</ExampleContainer>
</>
);