-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Visual improvements to the block navigator (#22796)
* Adjust movers size * Solve conflicts * Restore the generic icon * Consistently apply whitespace and highlighting throughout all the navigators * Skip the top-level navigation block for navigation block specific block navigator (this naming is so confusing!) * Use a variable for mover button size * Remove hover from this PR * Apply correct alignment to navigator items * Use pseudo elements for focus targets while preserving the large tap target * Fix the vertical line alignment * Fix alignment of the descender lines * Fix paddings on the menu management screen * Use separate TreeGridItem for mover arrows * Improve alignment * Update alignment of descender lines
- Loading branch information
Showing
9 changed files
with
175 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
/** | ||
* Internal dependencies | ||
*/ | ||
import RovingTabIndexItem from './roving-tab-index-item'; | ||
import TreeGridItem from './item'; | ||
|
||
export default function TreeGridCell( { children, ...props } ) { | ||
export default function TreeGridCell( { | ||
children, | ||
withoutGridItem = false, | ||
...props | ||
} ) { | ||
return ( | ||
<td { ...props } role="gridcell"> | ||
<RovingTabIndexItem>{ children }</RovingTabIndexItem> | ||
{ withoutGridItem ? ( | ||
children | ||
) : ( | ||
<TreeGridItem>{ children }</TreeGridItem> | ||
) } | ||
</td> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* Internal dependencies | ||
*/ | ||
import RovingTabIndexItem from './roving-tab-index-item'; | ||
|
||
export default function TreeGridItem( { children, ...props } ) { | ||
return <RovingTabIndexItem { ...props }>{ children }</RovingTabIndexItem>; | ||
} |
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