Element: <oj-popup>

Oracle® JavaScript Extension Toolkit (JET)
16.0.0

F83703-01

DOM Interface: PopupElement

Version:
  • 16.0.0
Since:
  • 1.1.0
.oj-focus-highlight
Under normal circumstances this class is applied automatically. It is documented here for the rare cases that an app developer needs per-instance control.

The oj-focus-highlight class applies focus styling that may not be desirable when the focus results from pointer interaction (touch or mouse), but which is needed for accessibility when the focus occurs by a non-pointer mechanism, for example keyboard or initial page load.

The application-level behavior for this component is controlled in the theme by the $focusHighlightPolicy SASS variable; however, note that this same variable controls the focus highlight policy of many components and patterns. The values for the variable are:

nonPointer: oj-focus-highlight is applied only when focus is not the result of pointer interaction. Most themes default to this value.
all: oj-focus-highlight is applied regardless of the focus mechanism.
none: oj-focus-highlight is never applied. This behavior is not accessible, and is intended for use when the application wishes to use its own event listener to precisely control when the class is applied (see below). The application must ensure the accessibility of the result.

To change the behavior on a per-instance basis, the application can set the SASS variable as desired and then use event listeners to toggle this class as needed.
Example
<oj-popup class="oj-focus-highlight">
  <!-- Content -->
</oj-popup>

CSS Variables

See JET CSS Variables for additional details.
Name Type Description
--oj-popup-bg-color <color> Popup background color
--oj-popup-border-color <color> Popup border color
--oj-popup-border-radius <length> | <percentage> Popup border radius
--oj-popup-box-shadow Popup box shadow
--oj-popup-padding <length> Popup padding
--oj-popup-tail-height <length> Popup tail height
--oj-popup-tail-width <length> Popup tail width