We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a65c0cb commit 289ad63Copy full SHA for 289ad63
src/Fieldset/styled/legend.js
@@ -8,4 +8,21 @@ export default styled(Legend)`
8
float: left;
9
padding: 0;
10
margin-bottom: calc(${p => p.theme.spacingUnitFieldset} / 2);
11
+
12
+ ${p => p.labelDisplay === 'inline' && `
13
+ @media (min-width: 768px) {
14
+ width: ${p.theme.inlineLabelWidth};
15
+ padding-right: calc(${p.theme.spacingUnit} / 2);
16
+ }
17
+ `}
18
19
+ ${p => p.labelDisplay === 'invisible' && `
20
+ display: none;
21
22
23
+ ${p => p.labelDisplay === 'before' && `
24
+ display: block;
25
+ float: none;
26
+ width: 100%;
27
28
`;
0 commit comments