From 794c2fa09d34fcd7994901f92734c4528480e1da Mon Sep 17 00:00:00 2001 From: Gazook89 Date: Thu, 9 Jul 2026 14:10:49 -0500 Subject: [PATCH] add `disabled` attribute to items. beta to status Adds the `disabled` attribute to a menu-item button if it's disabled, not just as a className. Styling changes centered on that as well. Also changes the `beta` class to `status` because it is used for both `beta` and `disabled` indicators. Styling changes for that. --- client/homebrew/editor/snippetbar/snippetbar.jsx | 6 +++--- client/homebrew/editor/snippetbar/snippetbar.less | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/client/homebrew/editor/snippetbar/snippetbar.jsx b/client/homebrew/editor/snippetbar/snippetbar.jsx index 255bea3fa..a740928df 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.jsx +++ b/client/homebrew/editor/snippetbar/snippetbar.jsx @@ -328,11 +328,11 @@ const SnippetGroup = createReactClass({ if(!snippet.subsnippets){ return (
  • -
  • ); diff --git a/client/homebrew/editor/snippetbar/snippetbar.less b/client/homebrew/editor/snippetbar/snippetbar.less index 88cdcbc00..a004195e6 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.less +++ b/client/homebrew/editor/snippetbar/snippetbar.less @@ -214,8 +214,7 @@ } } .name { margin-right : auto; } - .disabled { text-decoration : line-through; } - .beta { + .status { align-self : center; padding : 4px 6px; margin-left : 5px;