A Highlight object is a Set-like object used to represent a collection of AbstractRange instances that can be styled using the CSS Custom Highlight API . It is created using the Highlight() constructor and holds one or more AbstractRange objects for styling purposes .
The passages do not define a "Highlight object" as a standalone entity. They only describe Highlight as an option or feature within selection tools in GIMP.
In the Rectangle Selection tool, "Highlight" is a setting that "highlights the actual selection, by darkening everything that surrounds it" . The same tool section notes that Highlight "Emphasizes the selected area by a surrounding mask, making the visual selection much easier" . Similarly, for the Ellipse Selection tool, "Highlight" is listed as an option that "highlights the actual selection, by darkening everything that surrounds it" .
The source does not cover a generic concept of a "Highlight object" outside of these specific tool settings.
The supplied passages do not describe a “Highlight object” in the ONS Design System.
The documentation mentions “highlighting” as a typography technique, with specific methods for applying it in different contexts . For headings, you use the semantic <strong> tag, and for other text, you use the .ons-highlight class . There are also specific color and shadow styles defined for “Highlighted heading text,” which use a neon yellow background and a 4px black offset box-shadow . The source does not contain information about a component or object explicitly named “Highlight.”
A Highlight object is not explicitly defined as a standalone component in the provided passages; instead, "highlight" refers to a design concept within Pajamas that uses specific design tokens to emphasize content or draw attention without implying particular meaning or status . These tokens support two contexts: match, for drawing attention to matched results like search terms, and target, for identifying referenced elements or visualizing relationships . Highlighting is used for temporary visual emphasis that is informational rather than interactive, such as highlighting a row on hover or indicating which element is referenced in a URL .
The specific design tokens include highlight.match.background.color, highlight.match.text.color, highlight.target.background.color, and highlight.target.border.color, which provide color styles for these emphasis states .
The passages do not contain any information defining what a "Highlight object" is. They discuss the "highlight component" in the context of the "Compare information" pattern, explaining how to use it to show differences and accessibility considerations , but they do not provide a definition of a "Highlight object" as a specific entity or term.