Closed Lunkan89 closed 1 week ago
This pull request is automatically being deployed by Amplify Hosting (learn more).
Access this pull request here: https://pr-648.d3fazya28914g3.amplifyapp.com
Using this issue to learn the work flow. I dont have access to Jira yet so cant reference connected jira issue. Assign myself to related issue: https://github.com/scania-digital-design-system/tegel/issues/614
@nathalielindqvist Maybe we should ignore the interaction with the reference element altogether if the show prop is provided, giving full control of show/hide to implementation? or am i miss understanding?
@nathalielindqvist Maybe we should ignore the interaction with the reference element altogether if the show prop is provided, giving full control of show/hide to implementation? or am i miss understanding?
@Lunkan89 I think we have used the reference element to make it super clear how the component can be implemented in an actual application and not just rely on the Storybook controls. Since we have our demo pages in both Reach and Angular we could probably remove the reference element from our Storybook example. However, I still think the close button in the Modal itself should change the 'show' prop and the Modal should be hidden. Otherwise the Modals behavior might be misinterpreted, maybe?
@nathalielindqvist This maybe a non-issue and the answer to https://github.com/scania-digital-design-system/tegel/issues/614 should just be to use closeable = false
if desired behavior is to not be able to close modal on show = true
.
This PR maybe obsolete?
@nathalielindqvist This maybe a non-issue and the answer to #614 should just be to use
closeable = false
if desired behavior is to not be able to close modal onshow = true
. This PR maybe obsolete?
Well the closeable
prop controls whether the close button is displayed. However, it does not inherently prevent the modal from closing through other interactions, like clicking the overlay (unless the prevent prop is set to true).
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Describe pull-request
Describe what the pull-request is about
Issue Linking:
Choose one of the following options
How to test
Provide detailed steps for testing, including any necessary setup.
Checklist before submission
Suggested test steps
Screenshots
Include before/after screenshots for UI changes.
Additional context
Add any other context or feedback requests about the pull-request here.