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 1366cac commit 7bd53aeCopy full SHA for 7bd53ae
src/WebformElement/styled/label.js
@@ -8,11 +8,13 @@ export default styled.label`
8
vertical-align: top;
9
line-height: ${p => p.theme.inputHeight};
10
11
- @media (min-width: 768px) {
12
- float: left;
13
- width: ${p => p.theme.inlineLabelWidth};
14
- padding-right: calc(${p => p.theme.spacingUnit} / 2);
15
- }
+ ${p => p.labelDisplay === 'inline' && `
+ @media (min-width: 768px) {
+ float: left;
+ width: ${p.theme.inlineLabelWidth};
+ padding-right: calc(${p.theme.spacingUnit} / 2);
16
+ }
17
+ `}
18
19
${p => p.labelDisplay === 'invisible' && `
20
display: none;
0 commit comments