File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ export default function App() {
63
63
</ div >
64
64
65
65
< div
66
+ role = "status"
66
67
style = { {
67
68
position : "absolute" ,
68
69
top : 0 ,
Original file line number Diff line number Diff line change 1
1
.btn {
2
+ border : none;
2
3
display : inline-flex;
3
4
flex-direction : row;
4
5
flex-wrap : nowrap;
Original file line number Diff line number Diff line change
1
+ import type React from "react" ;
1
2
import style from "./Button.module.css" ;
2
3
3
- interface Props {
4
+ type Props = {
4
5
children : React . ReactNode ;
5
- [ key : string ] : any ;
6
- }
6
+ } & React . ButtonHTMLAttributes < HTMLButtonElement > ;
7
7
8
8
export default function Button ( { children, ...props } : Props ) {
9
9
return (
10
- < div className = { style . btn } { ...props } >
10
+ < button className = { style . btn } { ...props } >
11
11
{ children }
12
- </ div >
12
+ </ button >
13
13
) ;
14
14
}
Original file line number Diff line number Diff line change @@ -16,7 +16,12 @@ interface Props {
16
16
export default function EndCallButton ( { ...props } : Props ) {
17
17
props . style = { ...containerStyle , ...( props . style || { } ) } ;
18
18
return (
19
- < Button style = { containerStyle } { ...props } >
19
+ < Button
20
+ aria-label = "End call"
21
+ title = "End call"
22
+ style = { containerStyle }
23
+ { ...props }
24
+ >
20
25
< MaterialSymbolsCallEnd />
21
26
</ Button >
22
27
) ;
You can’t perform that action at this time.
0 commit comments