Lorem ipsum dolor sit amet <span class='icon icon-arrow-down-2 inline-icon' aria-hidden='true'></span> consectetur adipiscing elit.
Each of the classes have a specific function and are required alongside the attribute.
Class
Description
icon
The global icon class responsible for setting the required styles for icons.
icon-arrow-down-2
The icon class that you wish to use. See the icon breakdown tables below to find a list of available icons.
inline-icon
The custom class required to align the icons correctly with the text.
Attribute
Description
aria-hidden='true'
This attribute is required to remove the icon from the screen reader read order.
Note: the color the icon inherits is the same color as the text that the icon sits alongside. If a different color is required for the icon a custom class will be required in the theme.
Customising icons
It is possible to expand upon the standard icon set by either editing existing or adding new icons.
To get started import the selection.json file into the Icomoon App and select 'Yes' when asked prompted to load all settings stored in the file. This will load the standard icon set into the app and pre-select them all.
Editing existing icons
With all the icons selected press the 'Generate Font' button in the lower right hand side of the screen. Selecting this button will generate the icons and show their associated content ID values. Selecting the visual representation of an icon will open an overlay where properties such as rotation, position, and size can be modified. Alternatively an icon can be replaced entirely by using the 'Replace' button. When ready select the 'Download' button to receive the modified vanilla icon set.
It is highly recommended that any customisations done to the standard icon set be loaded in as a separate font as part of the theme.
Adding new icons
Ensure that any new icons being added to the icon set are saved as an .svg and are created using fills rather than strokes as the latter is not supported.
Select the 'Import Icons' button from the main navigation bar in the upper left hand side of the screen and choose the new icons to add to the font set. This will load the chosen icons into the apps interface, from here select the new icons and then press 'Generate Font' button in the lower right hand side of the screen. The new icons will be generated unique content ID values that continue on from the standard set. If any edits to the icons are required they can be done from this screen, otherwise select the 'Download' button to receive the modified vanilla icon set.
It is highly recommended that any customisations done to the standard icon set be loaded in as a separate font as part of the theme.
Adding a new icon font set to Adapt
To be added.
Icon breakdown
Below is a list of every icon bundled as part of the Core's vanilla icon font set and is available in all Adapt projects, Framework and Authoring Tool, as a standard.
Header
Description
Icon name
The name of the source file used to create the icon. For the most part this information can be safely ignored though it is useful when editing icons within IcoMoon.
CSS class name
The class name required to use inline icons. Can also be used within Less for adding an icon to an element.
Content ID
As icons are bundled together as part of a custom font set they each have a unique content id. For the most part, the content id can be safely ignored for content purposes but it can be useful as a reference when creating custom styles or when adding more icons to the font set.