Skip to content

Commit 6da5235

Browse files
committed
feat(styling): add test styles
1 parent 5f72580 commit 6da5235

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

src/MyButton.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.my-button {
2+
background-color: white;
3+
}

src/MyButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import React from 'react'
22

3+
import './MyButton.css'
4+
35
interface MyButtonProps {
46
type?: 'primary'
57
}
68

79
export const MyButton: React.FC<MyButtonProps> = ({ type }) => {
8-
return <button className="my-button">my button: type {type}</button>
10+
return <button className="my-button global-button">my button: type {type}</button>
911
}

src/index.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.global-button {
2+
color: black;
3+
}

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
import './index.css';
2+
13
export { MyButton } from './MyButton'

0 commit comments

Comments
 (0)