Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 68e9040

Browse files
authoredJan 20, 2025··
Dialog box styling (#442)
1 parent 9321bef commit 68e9040

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed
 

‎includes/settings-functions.php

+11-4
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,19 @@ function hello_elementor_settings_page_footer() {
113113
?>
114114
<style>
115115
#hello-elementor-notifications-dialog {
116+
max-height: 80vh;
116117
padding: 20px;
117118
border: 1px solid #ccc;
118119
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
119120
}
120121
#hello-elementor-notifications-dialog::backdrop {
121-
background: rgba(0, 0, 0, 0.5);
122+
background-color: rgba(0, 0, 0, 0.5);
123+
}
124+
#hello-elementor-notifications-dialog h2 {
125+
font-size: 1.5em;
126+
}
127+
#hello-elementor-notifications-dialog h3 {
128+
font-size: 1.1em;
122129
}
123130
</style>
124131
<script>
@@ -131,10 +138,10 @@ function hello_elementor_settings_page_footer() {
131138
} );
132139
} );
133140
</script>
134-
<dialog id="hello-elementor-notifications-dialog">
135-
<h3><?php esc_html_e( 'What\'s new:', 'hello-elementor' ); ?></h3>
141+
<dialog id="hello-elementor-notifications-dialog" aria-labelledby="hello-elementor-notifications-dialog-heading">
142+
<h2 id="hello-elementor-notifications-dialog-heading"><?php esc_html_e( 'Changelog:', 'hello-elementor' ); ?></h2>
136143
<?php foreach ( $notifications as $item ) : ?>
137-
<h4><?php echo esc_html( $item['title'] ); ?></h4>
144+
<h3><?php echo esc_html( $item['title'] ); ?></h3>
138145
<p><?php echo wp_kses_post( $item['description'] ); ?></p>
139146
<?php endforeach; ?>
140147
<button class="close"><?php echo esc_html__( 'Close', 'hello-elementor' ); ?></button>

0 commit comments

Comments
 (0)
Please sign in to comment.