Angular Action Sheet | ng-hub-ui-action-sheet

Angular Action Sheet, aus einem Service geöffnet: Aktionen mit Rollen, flach oder gruppiert, Handler, die das Schließen verweigern können, und Schließen per Hintergrund, Tastatur oder Ziehen.

Stile

CSS-Variablen

Gestalte jedes Pixel mit 35 CSS-Variablen. Überschreibe sie auf :root oder begrenze sie auf einen Wrapper.

Action sheet

Design tokens read by this component. Override them on the host element (or any ancestor) to customize; every default falls back to the ng-hub-ui-ds layer.

VariableStandardTypBeschreibung
--hub-action-sheet-z-index1055number Stacking layer of the whole overlay
--hub-action-sheet-backdrop-bgrgba(0, 0, 0, 0.45)color Backdrop behind the sheet
--hub-action-sheet-bgvar(--hub-sys-surface-page, #fff)color Sheet background color
--hub-action-sheet-colorvar(--hub-sys-text-primary, #212529)color Sheet text color
--hub-action-sheet-border-colorvar(--hub-sys-border-color-default, #dee2e6)color Rule between groups and above the cancel action
--hub-action-sheet-border-radiusvar(--hub-ref-radius-lg, 0.5rem)length Sheet corner radius
--hub-action-sheet-shadow0 -0.5rem 1.5rem rgba(0, 0, 0, 0.18)shadow Sheet shadow
--hub-action-sheet-max-width34remlength Width cap of the sheet on wide screens
--hub-action-sheet-paddingvar(--hub-ref-space-2, 0.5rem)length Padding inside the sheet
--hub-action-sheet-gapvar(--hub-ref-space-2, 0.5rem)length Space between the sheet blocks
--hub-action-sheet-insetvar(--hub-ref-space-2, 0.5rem)length Margin between the sheet and the viewport edges
--hub-action-sheet-duration240mstransition Entry, exit and snap-back duration
--hub-action-sheet-header-colorvar(--hub-sys-text-primary, #212529)color Header text color
--hub-action-sheet-sub-header-colorvar(--hub-sys-text-muted, #6c757d)color Sub-header text color
--hub-action-sheet-group-title-colorvar(--hub-sys-text-muted, #6c757d)color Group title color
--hub-action-sheet-action-colorvar(--hub-sys-text-primary, #212529)color Action text color
--hub-action-sheet-action-bgtransparentcolor Action background color
--hub-action-sheet-action-hover-bgvar(--hub-sys-color-surface-subtle, #f8f9fa)color Action background on hover
--hub-action-sheet-action-min-height3remlength Minimum height of an action — the touch target
--hub-action-sheet-action-padding-xvar(--hub-ref-space-3, 1rem)length Horizontal padding of an action
--hub-action-sheet-action-gapvar(--hub-ref-space-2, 0.5rem)length Space between an action icon and its label
--hub-action-sheet-action-font-size1remlength Action font size
--hub-action-sheet-action-radiusvar(--hub-ref-radius-md, 0.375rem)length Action corner radius
--hub-action-sheet-action-disabled-opacity0.5number Opacity of a disabled action
--hub-action-sheet-destructive-colorvar(--hub-sys-color-danger, #dc3545)color Text color of the destructive action
--hub-action-sheet-accentvar(--hub-sys-color-primary, #0d6efd)color Semantic accent for the sheet — re-based per variant (default = primary)
--hub-action-sheet-accent-emphasiscolor-mix(in oklch, var(--hub-action-sheet-accent) 80%, var(--hub-sys-color-ink, #212529))color Accent role: emphasis, derived locally from the accent slot
--hub-action-sheet-accent-subtlecolor-mix(in oklch, var(--hub-action-sheet-accent) 12%, var(--hub-action-sheet-bg))color Accent role: subtle, derived locally from the accent slot
--hub-action-sheet-selected-colorvar(--hub-action-sheet-accent)color Text color of the selected action
--hub-action-sheet-selected-bgvar(--hub-action-sheet-accent-subtle)color Background of the selected action
--hub-action-sheet-handle-width2.25remlength Width of the drag handle
--hub-action-sheet-handle-height0.25remlength Height of the drag handle
--hub-action-sheet-handle-colorvar(--hub-sys-border-color-default, #dee2e6)color Color of the drag handle
--hub-action-sheet-focus-ring-widthvar(--hub-sys-focus-ring-width, 0.25rem)length Width of the keyboard focus ring
--hub-action-sheet-focus-ring-colorvar(--hub-sys-focus-ring-color, rgba(13, 110, 253, 0.25))color Color of the keyboard focus ring