This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
src/components/views/rooms Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -37,19 +37,21 @@ limitations under the License.
37
37
display : inline-block ;
38
38
position : relative ;
39
39
margin : 2px ;
40
-
41
- & :hover {
42
- background : $panel-actions ;
43
- border-radius : 6px ;
44
- z-index : 1 ;
45
- }
46
40
}
47
41
48
42
.mx_MessageComposerFormatBar_button {
49
43
width : 28px ;
50
44
height : 28px ;
51
45
box-sizing : border-box ;
52
46
vertical-align : middle ;
47
+ background : none ;
48
+ border : none ;
49
+
50
+ & :hover {
51
+ background : $panel-actions ;
52
+ border-radius : 6px ;
53
+ z-index : 1 ;
54
+ }
53
55
}
54
56
55
57
.mx_MessageComposerFormatBar_button ::after {
Original file line number Diff line number Diff line change @@ -103,8 +103,12 @@ class FormatButton extends React.PureComponent<IFormatButtonProps> {
103
103
</ div >
104
104
</ div > ;
105
105
106
+ // element="button" and type="button" are necessary for the buttons to work on WebKit,
107
+ // otherwise the text is deselected before onClick can ever be called
106
108
return (
107
109
< AccessibleTooltipButton
110
+ element = "button"
111
+ type = "button"
108
112
onClick = { this . props . onClick }
109
113
title = { this . props . label }
110
114
tooltip = { tooltip }
You can’t perform that action at this time.
0 commit comments