Documentation
Kitchen Sink documentation of style: 'Delos' of skin: 'ILIAS'
Italic
Description
- Purpose
- The Italic Glyph indicates the intention of an action in an e.g. link or button, which transforms some text from or into cursive one.
- Composition
- The Italic Glyph is composed of the letter I.
- Effect
- Clicking the Italic Glyph may insert or transform some text into cursive one.
- Context
- Appears in the markdown-actions.
Rivals
- Bold Glyph
- should be used if the transformation should be bold.
- Heading Glyph
- should be used if the transformation should be a heading.
- Link Glyph
- should be used if the transformation should be a link.
Rules
- Accessibility
- The aria-label MUST be ‘Insert Italic'.
Example 1: Italic
<?php declare(strict_types=1); namespace ILIAS\UI\examples\Symbol\Glyph\Italic; function italic() { global $DIC; $factory = $DIC->ui()->factory(); $renderer = $DIC->ui()->renderer(); $glyph = $factory->symbol()->glyph()->italic("#"); // showcase the various states of this Glyph $list = $factory->listing()->descriptive([ "Active" => $glyph, "Inactive" => $glyph->withUnavailableAction(), "Highlighted" => $glyph->withHighlight() ]); return $renderer->render($list); }
Relations
- Parents
- UIComponent
- Symbol
- Glyph