Skip to content

Commit 61c2f43

Browse files
committed
Use block style for edit link
1 parent 8ce21d6 commit 61c2f43

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

themes/wporg-translate-events-2024/blocks/pages/events/event-details/render.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
/-->
2323

2424
<?php if ( current_user_can( 'edit_translation_event', $event->id() ) ) : ?>
25-
<a class="details-edit-event" href="<?php echo esc_url( Urls::event_edit( $event->id() ) ); ?>">
26-
<span class="dashicons dashicons-edit"></span><?php echo esc_html__( 'Edit Event', 'wporg-translate-events-2024' ); ?>
27-
</a>
25+
<div class="wp-block-button is-style-outline is-style-outline--13 details-edit-event">
26+
<a class="wp-block-button__link wp-element-button" href="<?php echo esc_url( Urls::event_edit( $event->id() ) ); ?>"><?php echo esc_html__( 'Edit Event', 'wporg-translate-events-2024' ); ?></a>
27+
</div>
2828
<?php endif; ?>
2929

3030
<?php
3131
if ( is_user_logged_in() ) :
3232
if ( $event->is_past() ) :
3333
?>
3434
<!-- wp:wporg/notice {"type":"alert", "style":{"spacing":{"margin":{"top":"var:preset|spacing|20"}}}} -->
35-
<div class="wp-block-wporg-notice is-alert-notice" style="margin-top:var(--wp--preset--spacing--20)">
35+
<div class="wp-block-wporg-notice is-alert-notice" style="margin-top:var(--wp--preset--spacing--40)">
3636
<div class="wp-block-wporg-notice__icon"></div>
3737
<div class="wp-block-wporg-notice__content">
3838
<p>

themes/wporg-translate-events-2024/style.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,7 @@ span.user-remote-icon.dashicons-video-alt2 {
212212
display: inline-block;
213213
}
214214

215-
a.details-edit-event span.dashicons-edit {
216-
vertical-align: text-bottom;
217-
}
218-
219-
a.details-edit-event {
215+
div.details-edit-event {
220216
float: right;
221217
text-decoration: none;
222218
}

0 commit comments

Comments
 (0)