Skip to content

Commit

Permalink
Fix/light theme display (graphql#957)
Browse files Browse the repository at this point in the history
* refacotor(react): remove unnecessary css property

* fix(react): enable subscription time showed in a light theme
  • Loading branch information
yoshiakis authored and huv1k committed Feb 6, 2019
1 parent 110124d commit 23a2d59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ const SubscriptionTime = styled.div`
content: '';
top: 9px;
left: 95px;
border-top: 1px solid ${p => p.theme.colours.white20};
border-top: 1px solid
${p => p.theme.editorColours.subscriptionTimeBoaderTop};
}
`

const SubscriptionTimeText = styled.div`
color: rgba(23, 42, 58, 1);
font-size: 12px;
color: rgba(255, 255, 255, 0.5);
color: ${p => p.theme.editorColours.subscriptionTimeText};
padding-left: 15px;
`

Expand Down
6 changes: 6 additions & 0 deletions packages/graphql-playground-react/src/styled/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export interface EditorColours {
buttonWorkspaceHover: string
buttonWorkspaceText: string
circle: string
subscriptionTimeBoaderTop: string
subscriptionTimeText: string
}

export const darkColours: Colours = {
Expand Down Expand Up @@ -227,6 +229,8 @@ export const darkEditorColours: EditorColours = {
buttonWorkspaceHover: '#a4acb2',
buttonWorkspaceText: 'rgb(23, 42, 58)',
circle: 'rgba(255, 255, 255, 0.4)',
subscriptionTimeBoaderTop: 'rgba(255, 255, 255, 0.2)',
subscriptionTimeText: 'rgba(255, 255, 255, 0.5)',
}

export const lightEditorColours: EditorColours = {
Expand Down Expand Up @@ -283,6 +287,8 @@ export const lightEditorColours: EditorColours = {
buttonWorkspaceHover: 'rgb(157, 166, 173)',
buttonWorkspaceText: 'rgb(238, 239, 240)',
circle: 'rgba(23,42,58,.4)',
subscriptionTimeBoaderTop: 'rgba(23, 42, 58, 0.2)',
subscriptionTimeText: 'rgba(23, 42, 58, 0.5)',
}

export interface Sizes {
Expand Down

0 comments on commit 23a2d59

Please sign in to comment.