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

Function getChoiceGroupFocusStyle

docs/app/js/sanddance-app.js:37451–37481  ·  view source on GitHub ↗
(focusBorderColor, hasIconOrImage)

Source from the content-addressed store, hash-verified

37449var radioButtonSpacing = 3;
37450var radioButtonInnerSize = 5;
37451function getChoiceGroupFocusStyle(focusBorderColor, hasIconOrImage) {
37452 var _a, _b;
37453 return [
37454 "is-inFocus",
37455 {
37456 selectors: (_a = {}, _a["." + (0, _utilities.IsFocusVisibleClassName) + " &"] = {
37457 position: "relative",
37458 outline: "transparent",
37459 selectors: {
37460 "::-moz-focus-inner": {
37461 border: 0
37462 },
37463 ":after": {
37464 content: '""',
37465 top: -2,
37466 right: -2,
37467 bottom: -2,
37468 left: -2,
37469 pointerEvents: "none",
37470 border: "1px solid " + focusBorderColor,
37471 position: "absolute",
37472 selectors: (_b = {}, _b[0, _styling.HighContrastSelector] = {
37473 borderColor: "WindowText",
37474 borderWidth: hasIconOrImage ? 1 : 2
37475 }, _b)
37476 }
37477 }
37478 }, _a)
37479 },
37480 ];
37481}
37482function getImageWrapperStyle(isSelectedImageWrapper, className, checked) {
37483 return [
37484 className,

Callers 1

getStylesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected