A tooltip is a short descriptive message that appears when a user hovers or focuses on an element.
Use tooltips on inline text elements that appear in the main content of the page to:
Tooltips should only provide concise additional information for inline text elements. Do not use tooltips for:
There are two types of tooltips based on their purpose.
Escape
key, the close button or by navigating outside.All components are responsive and meet WCAG 2.1 AA accessibility guidelines.
Enter
or Space
keys, or by clicking the trigger element.Tab
key.Escape
key, or clicking outside.aria-expanded
set to true
or false
based on the open state.aria-controls
set to the id
of the Toggletip element.aria-haspopup
set to the suitable role
attribute of the Toggletip, depending on the type of content.Apparently we had reached a great height in the atmosphere, for the sky was a dead black, and the stars had ceased to twinkle. By the same illusion which lifts the horizon of the sea to the level of the spectator on a hillside, the sable cloud beneath was dished out, and the car seemed to float in the middle of an immense dark sphere, whose upper half was strewn with silver. Looking down into the dark gulf below, I could see a ruddy light streaming through a rift in the clouds.
By reducing how severe the illness is, you are less likely to:
Antiviral medicines target the virus (SARS-CoV-2) that causes COVID-19 to prevent it infecting healthy cells in your body and multiplying. This helps stop the spread of the virus inside your body and helps your immune system to fight off the infection.
SARS-CoV-2 is a single-stranded RNA betacoronavirus in the same subgenus as the severe acute respiratory syndrome (SARS) virus. Learn more
Apparently we had reached a great height in the atmosphere, for the sky was a dead black, and the stars had ceased to twinkle. By the same illusion which lifts the horizon of the sea to the level of the spectator on a hillside, the sable cloud beneath was dished out, and the car seemed to float in the middle of an immense dark sphere, whose upper half was strewn with silver. Looking down into the dark gulf below, I could see a ruddy light streaming through a rift in the clouds.
By reducing how severe the illness is, you are less likely to:
Antiviral medicines target the virus (SARS-CoV-2) that causes COVID-19 to prevent it infecting healthy cells in your body and multiplying. This helps stop the spread of the virus inside your body and helps your immune system to fight off the infection.
SARS-CoV-2 is a single-stranded RNA betacoronavirus in the same subgenus as the severe acute respiratory syndrome (SARS) virus. Learn more