Skip to main content Home
About About the Design SystemRoadmap
Get started OverviewDesignersDevelopers
Foundations OverviewColorGridIconographyInteractionsSpacingTypography
Tokens Overview Global colorbox shadowTypographyborderopacityspacelengthIconBreakpointsMedia Queries
Elements All elements Accordion Alert Announcement Audio player Avatar Back to top Badge Blockquote Breadcrumb Button Card Chip Code block Call to action Dialog Disclosure Footer Health index Icon Jump links Navigation (primary) Navigation (secondary) Pagination PopoverPlanned Progress stepsPlanned Site status Skip link Spinner Statistic Subnavigation Surface Switch Table Tabs Tag Tile Timestamp Tooltip Video embed
Theming OverviewColor PalettesCustomizingDevelopers
Patterns All PatternsCardFilterFormLink with iconLogo wallSearch barSticky bannerSticky cardTabsTagTile
Personalization All Personalization PatternsAnnouncement
Accessibility FundamentalsAccessibility toolsAssistive technologiesCI/CDContentContributorsDesignDevelopmentManual testingResourcesScreen readers
Design/code status Release notes Get support

Tag

OverviewExamples
Tag in a buttonTag in a button

Tag in a button

You can use tag within the <button> HTML element to make it trigger an action, like revealing a popover.

Interaction states

Hover

If a tag is being used as a button, the border width changes to --rh-border-width-md on hover.

A row of light scheme tag variants used in buttons and showing the difference between the default state and the hover state A row of dark scheme tag variants used in buttons and showing the difference between the default state and the hover state

Focus and active

A focus ring wraps around the text and icon in both focus and active states. Hover state styles are retained.

A row of light scheme tag variants used in buttons and showing showing the difference between the default state and the focus/active states A row of dark scheme tag variants used in buttons and showing the difference between the default state and the focus/active states
© 2021-2025 Red Hat, Inc. Deploys by Netlify