class Ariadne::UI::Dialog::Component

the dialog.
‘aria-labelledby` relationship between the title and the unique id of
The combination of both `:title` and `:dialog_id` establishes an
hex id is generated.
setting `:dialog_id`. If no `:dialog_id` is given, a random
- **Dialog unique id**: A dialog should be unique. Give a unique id by
used as the main heading inside the dialog.
Give an accessible name by setting `:title`. The accessible name will be
so screen readers are aware of the purpose of the dialog when it opens.
- **Dialog Accessible Name**: A dialog should have an accessible name,
@accessibility
to confirm actions, ask for disambiguation or to present small forms.
A `Dialog` is used to remove the user from the main application flow,

def describedby

def describedby
  "#{@dialog_id}-description"
end

def labelledby

def labelledby
  "#{@dialog_id}-title"
end