vira - v26.7.2
    Preparing search index...

    Function createFocusStyles

    • Create styles that look like an outline for the given selector.

      It is recommended to use the pseudo selector chain ":focus:focus-visible:not(:active)" to preventing clicking an element from creating focus styles in Chrome.

      Parameters

      • __namedParameters: { elementBorderSize: number } & PartialWithUndefined<
            { noNesting: boolean; outlineGap: number; outlineWidth: number },
        >
        • elementBorderSize: number

          ElementBorderSize here is used to fix the outline when the element these styles are attached to has a border. The dev must specify that border size here for the offsets to be calculated correctly.

      Returns any