Skip to content

Commit

Permalink
Update webchat__row to BEM naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
Corina committed Apr 9, 2019
1 parent 1385275 commit b91d3df
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/component/src/Activity/CarouselFilmStrip.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const ConnectedCarouselFilmStrip = connectCarouselFilmStrip(
</ul>
<div
aria-hidden={ true }
className="webchat-row"
className="webchat__row"
>
{(
activity.channelData
Expand Down
12 changes: 6 additions & 6 deletions packages/component/src/Activity/StackedLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ROOT_CSS = css({
flexGrow: 1,
overflow: 'hidden',

'& > .webchat-row': {
'& > .webchat__row': {
display: 'flex',

'& > .bubble, & > .timestamp': {
Expand All @@ -47,7 +47,7 @@ const ROOT_CSS = css({
'&.from-user': {
flexDirection: 'row-reverse',

'& > .content > .webchat-row': {
'& > .content > .webchat__row': {
flexDirection: 'row-reverse'
}
}
Expand Down Expand Up @@ -119,7 +119,7 @@ export default connectStackedLayout(
<div className="content">
{
activity.type === 'typing' ?
<div className="webchat-row typing">
<div className="webchat__row typing">
{
children({
activity,
Expand All @@ -129,7 +129,7 @@ export default connectStackedLayout(
<div className="filler" />
</div>
: !!activityDisplayText &&
<div className="webchat-row message">
<div className="webchat__row message">
<Bubble
aria-label={ ariaLabel }
className="bubble"
Expand All @@ -150,7 +150,7 @@ export default connectStackedLayout(
}
{
(activity.attachments || []).map((attachment, index) =>
<div className="webchat-row attachment" key={ index }>
<div className="webchat__row attachment" key={ index }>
<Bubble
className="attachment bubble"
fromUser={ fromUser }
Expand All @@ -163,7 +163,7 @@ export default connectStackedLayout(
}
<div
aria-hidden={ true }
className="webchat-row"
className="webchat__row"
>
{ showSendStatus ?
<SendStatus activity={ activity } className="timestamp" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function ({
}
},

'& > .webchat-row': {
'& > .webchat__row': {
marginLeft: paddingRegular
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/component/src/Styles/StyleSet/StackedLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function ({
marginRight: paddingRegular,

'& > .content': {
'& > .webchat-row': {
'& > .webchat__row': {
'& > .bubble, & > .timestamp': {
maxWidth: bubbleMaxWidth
},
Expand Down

0 comments on commit b91d3df

Please sign in to comment.