-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: wp-791 dropdown menu (#1028)
* refactor: WP-791 dropdown button menu - remove most of the redundant code - use Dropdown not ButtonDropdown - fix layout of menu and button in DataFilesSidebar - clean up our .dropdown-menu styles - use variables for arrow and border * refactor: WP-791 DataFilesBread… dropdown menu `….scss`: - use class not ID - position via `top` not `margin-top` - explain menu position's "magic" value - explain why positioning is necessary[^1] `….jsx`: - use class not ID use Dropdown not ButtonDropdown[^2] [^1]: Not desired, but necessary if we use our custom <Button> as is. [^2]: I don't see ButtonDropdown in latest ReactStrap (v9). * chore: remove class data-files-btn This class is assigned to buttons that: - **either** have Bootstrap btn-primary (in which case the `.workbench-content .btn-primary` styles it) - **or** are our custom `<Button>` (in which case the `composes: c-button` styles it) * doc: save `refactor/WP-791-dropdown-menu` PR desc * Revert "chore: remove class data-files-btn" This reverts commit 1b644ed. * style: npm run prettier:fix * chore: remove unnecessary `!important` * enhance: use `<DropdownItem divider>` consistently * chore: refactor-WP-791-dropdown-menu-pr-desc.md --------- Co-authored-by: Chandra Y <[email protected]>
- Loading branch information
1 parent
29e1bce
commit de51694
Showing
6 changed files
with
48 additions
and
102 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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