Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #7589

Closed
wants to merge 4 commits into from
Closed

Test #7589

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions assets/src/css/admin/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1050,18 +1050,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 @@ -1072,8 +1072,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
Loading