Skip to content

Commit

Permalink
Refactor: Update beta feature message component styles (#7601)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdghinson authored Nov 1, 2024
1 parent dbf0619 commit 87efa1f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
29 changes: 19 additions & 10 deletions assets/src/css/admin/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1051,18 +1051,18 @@ a.give-delete {
}
// copied from wp built-in .menu-counter
.givewp-beta-icon {
display: inline-block;
vertical-align: top;
box-sizing: border-box;
margin: 1px 0 -1px 2px;
padding: 0 5px;
min-width: 18px;
height: 18px;
border-radius: 9px;
display: flex;
justify-content: center;
align-items: center;
margin: 2px 0 0px 0px;
padding: 2px 8px;
border-radius: 0.75rem;
background-color: #F29718;
color: #fff;
font-size: 11px;
line-height: 1.6;
font-weight: 600;
font-family: 'Inter' ,sans-serif;
line-height: 0.9625rem;
text-align: center;
z-index: 26;
}
Expand All @@ -1073,8 +1073,17 @@ a.give-delete {

.give-admin-beta-features-message {
background-color: #fff;
padding: 0.5rem;
padding: 1rem;
border: 1px solid #F29718;
display: flex;
align-items: flex-start;
gap: 0.5rem;
border-radius: 2px;
color: #0E0E0E;
font-size: 0.875rem;
font-family: 'Inter' ,sans-serif;
font-weight: 400;
line-height: 1.5rem;
}

.give-admin-beta-features-feedback-link {
Expand Down
2 changes: 1 addition & 1 deletion src/BetaFeatures/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function boot(): void
});

add_action('give_admin_field_beta_features', function(){
echo sprintf('<div class="give-admin-beta-features-message"><p><span class="givewp-beta-icon">BETA</span> %s</p></div>', __('Beta features are a way to get early access to new features. These features are functional but will be updated frequently. Updates may include changes to the feature settings, admin screens, design and database.', 'give'));
echo sprintf('<div class="give-admin-beta-features-message"><span class="givewp-beta-icon">BETA</span> %s </div>', __('Beta features are a way to get early access to new features. These features are functional but will be updated frequently. Updates may include changes to the feature settings, admin screens, design and database.', 'give'));
});

add_action('give_admin_field_beta_features_feedback_link', function () {
Expand Down

0 comments on commit 87efa1f

Please sign in to comment.