Skip to content

Commit

Permalink
fix preview badge styles
Browse files Browse the repository at this point in the history
  • Loading branch information
rottencandy committed Aug 6, 2020
1 parent d09a574 commit 59a0c79
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}
}

.tech-preview {
.preview-badge {
.pf-c-label__content {
color: var(--pf-global--Color--light-100);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import * as React from 'react';
import { Label } from '@patternfly/react-core';
import './Badge.scss';

const DevPreviewBadge: React.FC = () => (
<Label style={{ backgroundColor: '#D93F00' }}>Dev Preview</Label>
<Label
className="preview-badge"
style={{ backgroundColor: '#D93F00', borderRadius: 'var(--pf-global--BorderRadius--sm)' }}
>
Dev Preview
</Label>
);

export default DevPreviewBadge;
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import * as React from 'react';
import { Label } from '@patternfly/react-core';
import './Badge.scss';

const TechPreviewBadge: React.FC = () => (
<Label
className="tech-preview"
style={{
backgroundColor: '#D93F00',
height: '100%',
borderRadius: 'var(--pf-global--BorderRadius--sm)',
}}
className="preview-badge"
style={{ backgroundColor: '#D93F00', borderRadius: 'var(--pf-global--BorderRadius--sm)' }}
>
Tech Preview
</Label>
Expand Down

0 comments on commit 59a0c79

Please sign in to comment.