Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Admin: improve help bubble component

Damian Legawiecf35d69b6f94a
diff --git a/admin/app/assets/stylesheets/spree/admin/shared/_base.scss b/admin/app/assets/stylesheets/spree/admin/shared/_base.scss
index 73ebccde38..5037732a8b 100644
--- a/admin/app/assets/stylesheets/spree/admin/shared/_base.scss
+++ b/admin/app/assets/stylesheets/spree/admin/shared/_base.scss
@@ -171,6 +171,9 @@ strong {
.cursor-not-allowed {
cursor: not-allowed !important;
}
+.cursor-help {
+ cursor: help;
+}
.active {
color: theme-color('primary');
@@ -445,6 +448,9 @@ small,
.opacity-50 {
opacity: 0.5;
}
+.opacity-75 {
+ opacity: 0.75;
+}
.opacity-0 {
opacity: 0;
}
diff --git a/admin/app/helpers/spree/admin/navigation_helper.rb b/admin/app/helpers/spree/admin/navigation_helper.rb
index de310d3a63..6685c492f1 100644
--- a/admin/app/helpers/spree/admin/navigation_helper.rb
+++ b/admin/app/helpers/spree/admin/navigation_helper.rb
@@ -263,7 +263,7 @@ module Spree
# @param css [String] the css class of the help bubble
# @return [String] the help bubble with the icon
def help_bubble(text = '', placement = 'bottom', css: nil)
- css ||= 'text-muted'
+ css ||= 'text-muted opacity-75 cursor-help'
content_tag :small, icon('info-square-rounded', class: css), data: { placement: placement }, class: "with-tip #{css}", title: text
end