-
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.
Style Engine: Add support for dimensions.minHeight property (#45334)
* Style Engine: Add support for dimensions.minHeight property * Move in alphabetical order * Fix linting issue * Remove class name definitions for dimensions.minHeight. Similar to spacing properties, we don't generate classnames. Only inline styles. Co-authored-by: ramonjd <[email protected]>
- Loading branch information
1 parent
62987d7
commit 18bca71
Showing
6 changed files
with
62 additions
and
1 deletion.
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,19 @@ | ||
/** | ||
* Internal dependencies | ||
*/ | ||
import type { Style, StyleOptions } from '../../types'; | ||
import { generateRule } from '../utils'; | ||
|
||
const minHeight = { | ||
name: 'minHeight', | ||
generate: ( style: Style, options: StyleOptions ) => { | ||
return generateRule( | ||
style, | ||
options, | ||
[ 'dimensions', 'minHeight' ], | ||
'minHeight' | ||
); | ||
}, | ||
}; | ||
|
||
export default [ minHeight ]; |
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