Skip to content

Commit ef4d1fc

Browse files
authored
Merge pull request #17 from GetStream/a11y
fix(aria): adjust styles for divs to buttons. display options on focus
2 parents c607c29 + a409471 commit ef4d1fc

8 files changed

Lines changed: 50 additions & 1 deletion

src/styles/ChannelListMessenger.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
min-width: 300px;
44
background: var(--grey-gainsboro);
55
}
6+
7+
.str-chat-channel-list .str-chat__channel-list-messenger__main {
8+
padding-bottom: 4px;
9+
}

src/styles/ChannelSearch.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
}
8282

8383
&-container.inline {
84-
top: 60px;
84+
top: 64px;
8585
right: 0;
8686
background: var(--grey-gainsboro);
8787
height: calc(100vh - 60px);

src/styles/EditMessageForm.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,7 @@
106106
}
107107
}
108108
}
109+
110+
.str-chat__edit-message-form {
111+
position: relative;
112+
}

src/styles/LoadMoreButton.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@
3636
}
3737
}
3838
}
39+
40+
.str-chat__load-more-button__button {
41+
display: flex;
42+
justify-content: center;
43+
}

src/styles/MessageActions.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,15 @@
8989
.str-chat__message-actions-options:hover svg {
9090
fill: var(--primary-color);
9191
}
92+
93+
.str-chat__message-simple:focus-within .str-chat__message-simple__actions__action--thread {
94+
display: flex;
95+
}
96+
97+
.str-chat__message-simple:focus-within .str-chat__message-simple__actions__action--reactions {
98+
display: flex;
99+
}
100+
101+
.str-chat__message-simple:focus-within .str-chat__message-simple__actions__action--options {
102+
display: flex;
103+
}

src/styles/MessageInput.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
.rta__entity--selected {
168168
background-color: var(--primary-color);
169169
color: var(--white);
170+
width: 100%;
170171
}
171172

172173
// Using separate rules for Angular so React SDK integrators don't have problems with "!important"
@@ -208,6 +209,13 @@
208209
.str-chat__slash-command {
209210
padding: var(--xs-p) var(--sm-p);
210211
font-size: var(--md-font);
212+
display: flex;
213+
flex-direction: column;
214+
align-items: flex-start;
215+
216+
br {
217+
display: none;
218+
}
211219

212220
&-description {
213221
font-size: var(--sm-font);

src/styles/Modal.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,9 @@
6565
}
6666
}
6767
}
68+
69+
.str-chat__exit {
70+
display: flex;
71+
width: 86px;
72+
justify-content: space-between;
73+
}

src/styles/_base.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515
clear: both;
1616
}
1717

18+
button {
19+
cursor: pointer;
20+
background-color: transparent;
21+
border: none;
22+
padding: 0;
23+
display: flex;
24+
align-items: center;
25+
width: auto;
26+
}
27+
1828
.messenger-chat {
1929
&.str-chat {
2030
display: flex;

0 commit comments

Comments
 (0)