-
Notifications
You must be signed in to change notification settings - Fork 1.3k
(RSP-1526) Moving size prop into DialogTrigger and css fixes for fullscreen dialog #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
72be25e
Moving size prop into DialogTrigger and css fixes for fullscreen dialog
LFDanLu 098c90b
accidentally moved size in dialog types
LFDanLu c2748ec
Addressing review comments
LFDanLu c0e34a2
fixing tests
LFDanLu 7fd85cd
adjusting fullscreen dialog padding to 40px as per design
LFDanLu 5a15657
Merge branch 'master' into RSP-1526
LFDanLu f458ea4
adding 40px dialog fullscreen var
LFDanLu 00d128e
Merge branch 'RSP-1526' of https://github.com/adobe-private/react-spe…
LFDanLu 3bbeb8d
Merge branch 'master' into RSP-1526
LFDanLu de82990
Removing size for popover dialogs
LFDanLu 2e24fb3
Merge branch 'master' into RSP-1526
LFDanLu ad4a3c0
Merge branch 'master' into RSP-1526
LFDanLu e6ed66f
Updating context in prep for Rob's changes
LFDanLu 33ec143
Merge branch 'master' of https://github.com/adobe-private/react-spect…
LFDanLu f21f019
Replacing size in DialogTrigger with fullscreen (mobile)type
LFDanLu cffe870
forgot to remove size from dialog trigger types
LFDanLu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,21 +62,13 @@ storiesOf('Dialog', module) | |
| 'large', | ||
| () => render({size: 'L'}) | ||
| ) | ||
| .add( | ||
| 'fullscreen', | ||
| () => render({size: 'fullscreen'}) | ||
| ) | ||
| .add( | ||
| 'fullscreenTakeover', | ||
| () => render({size: 'fullscreenTakeover'}) | ||
| ) | ||
| .add( | ||
| 'form', | ||
| () => renderWithForm({}) | ||
| ) | ||
| .add( | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this needs to be added somewhere, it's a good story to demonstrate tabbing order |
||
| 'fullscreenTakeover form', | ||
| () => renderWithForm({size: 'fullscreenTakeover'}) | ||
| () => renderWithForm({type: 'fullscreenTakeover'}) | ||
| ) | ||
| .add( | ||
| 'three buttons', | ||
|
|
@@ -261,7 +253,7 @@ function renderAlert({width = 'auto', ...props}: SpectrumAlertDialogProps) { | |
| function renderWithForm({width = 'auto', ...props}) { | ||
| return ( | ||
| <div style={{display: 'flex', width, margin: '100px 0'}}> | ||
| <DialogTrigger isOpen> | ||
| <DialogTrigger isOpen type={props.type}> | ||
| <ActionButton>Trigger</ActionButton> | ||
| <Dialog {...props}> | ||
| <Header><Text slot="title">The Title</Text></Header> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a common place for
components/dialog/index.cssand this file to share this variable?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally I would've included it into the css var but Larry said that file was autogenerated and to put new vars at the top of the index.css file.