Skip to content

Commit

Permalink
ChatNavBar [nfc]: Use a variable instead of 'transparent'.
Browse files Browse the repository at this point in the history
This is pretty clearly what was intended. Soon, though, we'll
simplify things by removing the variable -- at this point, it's just
being used as a sentinel value [1].

[1] zulip#4443 (comment)
  • Loading branch information
chrisbobbe committed Jan 30, 2021
1 parent ef4a7d3 commit 3ac4225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nav/ChatNavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function ChatNavBar(props: Props) {
edges={['top', 'right', 'left']}
style={{
borderColor:
backgroundColor === 'transparent'
backgroundColor === DEFAULT_TITLE_BACKGROUND_COLOR
? 'hsla(0, 0%, 50%, 0.25)'
: Color(backgroundColor).darken(0.1),
borderBottomWidth: 1,
Expand Down

0 comments on commit 3ac4225

Please sign in to comment.