This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
feat: change base class 'react-dropdown-now' #71
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
658409f
feat: change base class 'react-dropdown-now'
bumblehead 0e3a263
feat: update classnames at rdn-control node
bumblehead ead7676
feat: update classnames at rdn-menu node
bumblehead 500616e
feat: update classnames at rdn-menu-noresults node
bumblehead f5a41d0
feat: add is-empty and is-disabled classnames at rdn node
bumblehead 3bb443c
chore: add unit test for selection node
bumblehead 0fc9303
chore: update stylesheet
bumblehead 28c246f
chore: update demo page to use new dropdown and stylesheet
bumblehead 8c48c27
chore: reconcile rebase
bumblehead a85ac50
chore: lint-related format changes
bumblehead 829f600
chore: update readme, remove custom classnames section
bumblehead b8ab128
chore: remove comment, update bundle
bumblehead 7a4da46
chore: update readme to explain changes
bumblehead 6c760f8
chore: move v4 migration notice to top of notice list
bumblehead f739f1c
chore: move Selection test to Selection-dedicated file
bumblehead 8b532f6
chore: removed base and arrow class properties
bumblehead 3013c1e
chore: removed unused arrowClassName reference
bumblehead f1bcec3
chore: remove un-supported classNames from Dropdown.stories
bumblehead b0806f6
feat: update storybook custom arrow to not wrap
bumblehead 5b84592
chore: update typescript file
bumblehead 030dadf
chore: (re)add Classname table to README
bumblehead c03066a
chore: updated docs, npm run build-storybook
bumblehead 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,115 @@ | ||
| .rdn { | ||
| position: relative; | ||
| } | ||
|
|
||
| .rdn-control { | ||
| position: relative; | ||
| overflow: hidden; | ||
| background-color: white; | ||
| border: 1px solid #ccc; | ||
| border-radius: 2px; | ||
| box-sizing: border-box; | ||
| color: #333; | ||
| cursor: default; | ||
| outline: none; | ||
| padding: 8px 52px 8px 10px; | ||
| transition: all 200ms ease; | ||
| } | ||
|
|
||
| .rdn-control:hover { | ||
| box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); | ||
| } | ||
|
|
||
| .rdn-arrow-icon { | ||
| border-color: #999 transparent transparent; | ||
| border-style: solid; | ||
| border-width: 5px 5px 0; | ||
| content: ' '; | ||
| display: block; | ||
| height: 0; | ||
| margin-top: -ceil(2.5); | ||
| position: absolute; | ||
| right: 10px; | ||
| top: 14px; | ||
| width: 0; | ||
| } | ||
|
|
||
| .rdn-arrow-icon.is-open { | ||
| border-color: transparent transparent #999; | ||
| border-width: 0 5px 5px; | ||
| } | ||
|
|
||
|
|
||
| .rdn-drop, | ||
| .rdn-selection { | ||
| background-color: white; | ||
| border: 1px solid #ccc; | ||
| box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); | ||
| box-sizing: border-box; | ||
| margin-top: -1px; | ||
| max-height: 200px; | ||
| overflow-y: auto; | ||
| position: absolute; | ||
| top: 100%; | ||
| width: 100%; | ||
| z-index: 1000; | ||
| -webkit-overflow-scrolling: touch; | ||
| } | ||
|
|
||
| .rdn-selection { | ||
| position: relative; | ||
| z-index: auto; | ||
| } | ||
|
|
||
|
|
||
| .rdn-drop-menu-group-title, | ||
| .rdn-selection-menu-group-title { | ||
| padding: 8px 10px; | ||
| color: rgba(51, 51, 51, 1); | ||
| font-weight: bold; | ||
| text-transform: capitalize; | ||
| } | ||
|
|
||
| .rdn-drop-menu-option, | ||
| .rdn-drop-menu-group-option, | ||
| .rdn-selection-menu-option, | ||
| .rdn-selection-menu-group-option { | ||
| box-sizing: border-box; | ||
| color: rgba(51, 51, 51, 0.8); | ||
| cursor: pointer; | ||
| display: block; | ||
| padding: 8px 10px; | ||
| } | ||
|
|
||
| .rdn-drop-menu-option:last-child, | ||
| .rdn-drop-menu-group-option:last-child, | ||
| .rdn-selection-menu-option:last-child, | ||
| .rdn-selection-menu-group-option:last-child { | ||
| border-bottom-right-radius: 2px; | ||
| border-bottom-left-radius: 2px; | ||
| } | ||
|
|
||
| .rdn-drop-menu-option:hover, | ||
| .rdn-drop-menu-group-option:hover, | ||
| .rdn-selection-menu-option:hover, | ||
| .rdn-selection-menu-group-option:hover { | ||
| background-color: #f2f9fc; | ||
| color: #333; | ||
| } | ||
|
|
||
| .rdn-drop-menu-option.is-selected, | ||
| .rdn-drop-menu-group-option.is-selected, | ||
| .rdn-selection-menu-option.is-selected, | ||
| .rdn-selection-menu-group-option.is-selected { | ||
| background-color: #f2f9fc; | ||
| color: #333; | ||
| } | ||
|
|
||
| .rdn-drop-menu-noresults, | ||
| .rdn-selection-menu-noresults { | ||
| box-sizing: border-box; | ||
| color: #ccc; | ||
| cursor: default; | ||
| display: block; | ||
| padding: 8px 10px; | ||
| } |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.