Open jattasNI opened 1 year ago
This came up again in an SLE HLD about a modal over the software grid. That team is hoping to contribute a fix.
This came up again in a request from an NI partner developing SystemLink plugins using Nimble. Their use case was for a wizard-style dialog. I believe the current proposal would meet their needs.
I would also like to see this feature (or at least a workaround). My use case is a simple dialog with a single text area and a couple of controls where users sometimes want to enter large amounts of text. In that case, I'd like to allow them to resize the text area and the containing dialog by setting
width: revert;
min-width: 400px;
max-height: revert;
😯 Problem to Solve
As discussed in #1102, the nimble-dialog currently has a fixed size and applications can only change it by setting internal styles. This prevents apps from using it for use cases like a full-screen wizard.
💁 Proposed Solution
We don't have clear guidance about pre-set sizes we want to support yet, so we'd like to allow apps to set an arbitrary size to begin with. This would be via normal CSS attributes like
width
andheight
. This is similar to the approach taken by the spinner.As part of this we should revisit the SLE dialog which is currently setting its size by digging into the Nimble dialog shadow root.
📋 Tasks
styles.ts
to respectwidth
andheight
set by clientsmin-width
,max-height