Skip to content

Commit

Permalink
Merge branch 'master' into improved-error-meta-handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o authored Nov 4, 2024
2 parents 1beecac + d4bfafa commit afdd8db
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 7 deletions.
9 changes: 8 additions & 1 deletion assets/editor/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@
}

.lzb-date-time-picker-toggle.components-button {
padding: 7px 0;
padding: 7px;
margin-left: -7px;
text-decoration: none;

svg {
Expand All @@ -217,6 +218,12 @@
}
}

.lzb-date-time-picker-reset {
display: flex;
justify-content: flex-end;
margin-top: 0.5rem;
}

// Color Picker control
.lazyblocks-control-color {
// Combine multiple color pickers without label.
Expand Down
2 changes: 1 addition & 1 deletion build/control-date-time.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-components', 'wp-date', 'wp-hooks', 'wp-i18n'), 'version' => 'be897623eeab248f5aa8');
<?php return array('dependencies' => array('wp-components', 'wp-date', 'wp-hooks', 'wp-i18n'), 'version' => '62ebcfeb40e7ed03c801');
2 changes: 1 addition & 1 deletion build/control-date-time.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/editor-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/editor.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'c748fc0fe9b6034cc671');
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'c748fc0fe9b6034cc671');
2 changes: 1 addition & 1 deletion build/editor.css

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion controls/date_time/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function DateTimePicker(props) {
}}
renderToggle={({ isOpen, onToggle }) => (
<Button
isLink
variant="tertiary"
aria-expanded={isOpen}
onClick={onToggle}
className="lzb-date-time-picker-toggle"
Expand Down Expand Up @@ -159,6 +159,20 @@ function DateTimePicker(props) {
) : (
''
)}
{value ? (
<div className="lzb-date-time-picker-reset">
<Button
variant="tertiary"
onClick={() => {
onChange(null);
}}
>
{__('Reset', 'lazy-blocks')}
</Button>
</div>
) : (
''
)}
</div>
)}
/>
Expand Down

0 comments on commit afdd8db

Please sign in to comment.