-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1739 from woocommerce/fix/1736-visually-hidden-style
WP 6.1 Compatibility: Fix the giant icons in the `DatePicker` component
- Loading branch information
Showing
5 changed files
with
46 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
import { createHigherOrderComponent } from '@wordpress/compose'; | ||
|
||
/** | ||
* A higher-order component for wrapping the app shell on top of the GLA admin page. | ||
* Cross-page shared things could be handled here. | ||
* | ||
* @param {JSX.Element} Page Top-level admin page component to be wrapped by app shell. | ||
*/ | ||
const withAdminPageShell = createHigherOrderComponent( | ||
( Page ) => ( props ) => { | ||
return ( | ||
// gla-admin-page is for scoping particular styles to a GLA admin page. | ||
<div className="gla-admin-page"> | ||
<Page { ...props } />; | ||
</div> | ||
); | ||
}, | ||
'withAdminPageShell' | ||
); | ||
|
||
export default withAdminPageShell; |
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