Skip to content

Commit

Permalink
fix(color): add theme font color to connection info
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1p committed Jul 21, 2020
1 parent a9f16eb commit aa02762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/Chat/components/Chatbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const ChatBar: FunctionComponent<ChatProps> = (props) => {
return (
<ChatBarForm isSettings={isSettings} onSubmit={sendMessage}>
<ConnectionInfo isConnected={isConnected}>
{isFailed ? <>connection failed 🙈</> : 'connecting...'}
{isFailed ? 'connection failed 🙈' : 'connecting...'}
</ConnectionInfo>

<ChatInputWrapper isConnected={isConnected}>
Expand Down Expand Up @@ -158,7 +158,7 @@ const ConnectionInfo = styled.div`
z-index: 6;
bottom: -5px;
text-align: center;
color: #000;
color: ${(p) => p.theme.fontColor};
font-weight: bold;
transition: transform 0.2s;
transform: translateY(${({ isConnected }) => (isConnected ? 69 : 0)}px);
Expand Down

0 comments on commit aa02762

Please sign in to comment.