Skip to content

Dialog: add a fullscreen mode and a scrolling content slot #84

Description

@StanZGenchev

A dialog can only sit centered at a capped width, which is a poor fit for long forms and multi-step tasks, especially on small screens. Add a data-fullscreen attribute, bindable to an expression so the same dialog can change modes at runtime, and an x-h-dialog-content slot that marks the body as the only scrolling part so the header and the footer stay in place. The padding moves off the dialog surface onto the header, the content and the footer, which puts it inside the scrolling area so a focused control no longer has its focus ring clipped, and makes full width content a matter of the x-h-dialog-content.flush modifier instead of cancelling the surface padding with p-0!.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions