MCPcopy Create free account
hub / github.com/microsoft/SandDance / getLabelStyles

Function getLabelStyles

docs/app/js/sanddance-app.js:50128–50154  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

50126 active: "is-active"
50127};
50128function getLabelStyles(props) {
50129 var underlined = props.underlined, disabled = props.disabled, focused = props.focused, theme = props.theme;
50130 var palette = theme.palette, fonts = theme.fonts;
50131 return function() {
50132 var _a;
50133 return {
50134 root: [
50135 underlined && disabled && {
50136 color: palette.neutralTertiary
50137 },
50138 underlined && {
50139 fontSize: fonts.medium.fontSize,
50140 marginRight: 8,
50141 paddingLeft: 12,
50142 paddingRight: 0,
50143 lineHeight: "22px",
50144 height: 32
50145 },
50146 underlined && focused && {
50147 selectors: (_a = {}, _a[0, _styling.HighContrastSelector] = {
50148 height: 31
50149 }, _a)
50150 },
50151 ]
50152 };
50153 };
50154}
50155function getStyles(props) {
50156 var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
50157 var theme = props.theme, className = props.className, disabled = props.disabled, focused = props.focused, required = props.required, multiline = props.multiline, hasLabel = props.hasLabel, borderless = props.borderless, underlined = props.underlined, hasIcon = props.hasIcon, resizable = props.resizable, hasErrorMessage = props.hasErrorMessage, inputClassName = props.inputClassName, autoAdjustHeight = props.autoAdjustHeight, hasRevealButton = props.hasRevealButton;

Callers 1

getStylesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected