Ensure all modals have headers - #1259
Conversation
|
Preview build will be at |
|
Interesting. So it's too visually different to align them with dialogs using ModalHeader? I think we'll have to use aria-label (or whatever it is) for About/Feedback. Feedback we can fix in time by dropping the form embed. |
Hmm yeah, we could do it but it's a bit awkward to keep the existing layout / spacing. An example for one header, but we could have this as a component. If the library dialog header or body padding changes then this will drift and need re-calculating. |
|
Discussed with Rob. The right fix here is a reworking of the dialogs to align with the more normal use in ml-trainer. But this will require visual change to the heading location (e.g. relative to the close button) and reworking the padding around each dialog. I think it's worth doing but this change is a clear improvement without requiring us to discuss the visual aspect so let's get it in first then raise an issue in this repo for the rest. |
|
Raised issue as #1262 |
Uses a new DialogHeading component with title slot to ensure that these are used to label the dialog. We have
headerprops forGenericDialogthat are never used since they change the appearance of the dialogs. We continue to avoid using them here as I'm not sure there's a nice way to use them while maintaining the existing styling and positing of the h2 elements.About and feedback don't look amazing:


See See microbit-foundation/ui#29