Repository navigation
Conversation
…nto feat/modal-implementation-headless-ui
…nto feat/modal-implementation-headless-ui
huyenltnguyen
force-pushed
the
feat/modal-implementation-headless-ui
branch
from
March 11, 2024 07:59
0202513 to
17b5b4a
Compare
Co-authored-by: Sboonny <[email protected]>
huyenltnguyen
force-pushed
the
feat/modal-implementation-headless-ui
branch
from
March 11, 2024 09:20
17b5b4a to
28b6e41
Compare
huyenltnguyen
commented
Mar 11, 2024
huyenltnguyen
commented
Mar 11, 2024
Sembauke
approved these changes
Mar 12, 2024
Member
|
Might be unrelated but the close button does not change color on hover. |
ahmaxed
approved these changes
Mar 14, 2024
ahmaxed
enabled auto-merge (squash)
March 14, 2024 09:44
4 tasks done
This was referenced Apr 4, 2024
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Checklist:
mainbranch of freeCodeCamp.This PR:
@headlessui/react@radix-ui/react-dialogas the baseI decided to switch because:
@radix-ui/react-dialogcomes with aTriggercomponent, which is responsible for 'triggering' the modal appearance. In order for the Modal to behave properly, we are required to include thisTriggerin the Modal implementation. This is unfortunately not compatible with our use cases, as we want to give the consumers total control of the Modal appearance via theopenprop, and the prop should be the single source of truth for the open/close stateheadlessui'sheadlessuiModal is more customizable, and its documentation is more comprehensiveheadlessuiinui-components, so we can just keep using it instead of introducing another dependencyScreenshots
Screenshots of the Modal component