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

Function getInputFocusStyle

docs/app/js/sanddance-app.js:28533–28552  ·  view source on GitHub ↗
(borderColor, borderRadius, borderType, borderPosition)

Source from the content-addressed store, hash-verified

28531 };
28532}
28533var getInputFocusStyle = function(borderColor, borderRadius, borderType, borderPosition) {
28534 var _a, _b, _c;
28535 if (borderType === void 0) borderType = "border";
28536 if (borderPosition === void 0) borderPosition = -1;
28537 var isBorderBottom = borderType === "borderBottom";
28538 return {
28539 borderColor: borderColor,
28540 selectors: {
28541 ":after": (_a = {
28542 pointerEvents: "none",
28543 content: "''",
28544 position: "absolute",
28545 left: isBorderBottom ? 0 : borderPosition,
28546 top: borderPosition,
28547 bottom: borderPosition,
28548 right: isBorderBottom ? 0 : borderPosition
28549 }, _a[borderType] = "2px solid " + borderColor, _a.borderRadius = borderRadius, _a.width = borderType === "borderBottom" ? "100%" : undefined, _a.selectors = (_b = {}, _b[0, _commonStyles.HighContrastSelector] = (_c = {}, _c[borderType === "border" ? "borderColor" : "borderBottomColor"] = "Highlight", _c), _b), _a)
28550 }
28551 };
28552};
28553
28554},{"./CommonStyles":"9q242","@uifabric/utilities":"uTCgd","./zIndexes":"lgWzU","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"9q242":[function(require,module,exports) {
28555var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected