From 136e989814d5c7c5c81bddc3cdc569c9d8f51580 Mon Sep 17 00:00:00 2001 From: mittal Date: Thu, 12 Nov 2026 17:46:49 +0530 Subject: [PATCH 1/2] feat: add hints to search in files search options --- src/components/checkbox/index.js | 25 ++++++++++- src/components/tooltip/longPress.js | 3 +- src/lang/ar-ye.json | 4 +- src/lang/az-az.json | 4 +- src/lang/be-by.json | 4 +- src/lang/bn-bd.json | 4 +- src/lang/cs-cz.json | 4 +- src/lang/de-de.json | 4 +- src/lang/en-us.json | 4 +- src/lang/es-sv.json | 4 +- src/lang/fr-fr.json | 4 +- src/lang/he-il.json | 4 +- src/lang/hi-in.json | 4 +- src/lang/hu-hu.json | 4 +- src/lang/id-id.json | 4 +- src/lang/index.d.ts | 2 + src/lang/ir-fa.json | 4 +- src/lang/it-it.json | 4 +- src/lang/ja-jp.json | 4 +- src/lang/ko-kr.json | 4 +- src/lang/ln-ln.json | 4 +- src/lang/ml-in.json | 4 +- src/lang/mm-unicode.json | 4 +- src/lang/mm-zawgyi.json | 4 +- src/lang/pl-pl.json | 4 +- src/lang/pt-br.json | 4 +- src/lang/pu-in.json | 4 +- src/lang/ru-ru.json | 4 +- src/lang/tl-ph.json | 4 +- src/lang/tr-tr.json | 4 +- src/lang/uk-ua.json | 4 +- src/lang/uz-uz.json | 4 +- src/lang/vi-vn.json | 4 +- src/lang/zh-cn.json | 4 +- src/lang/zh-hant.json | 4 +- src/lang/zh-tw.json | 4 +- src/sidebarApps/searchInFiles/index.js | 5 +++ tests/unit/iconTooltips.test.js | 57 ++++++++++++++++++++++++++ 38 files changed, 189 insertions(+), 35 deletions(-) diff --git a/src/components/checkbox/index.js b/src/components/checkbox/index.js index 17e3e44b10..967cca1fdc 100644 --- a/src/components/checkbox/index.js +++ b/src/components/checkbox/index.js @@ -37,6 +37,9 @@ export function updateSwitchHandle($handle, checked, animateToggle = true) { * @property {string} [id] * @property {string} [size] * @property {"checkbox"|"radio"} [type] + * @property {string} [title] + * @property {string} [ariaLabel] + * @property {string} [description] */ /** @@ -51,14 +54,30 @@ export function updateSwitchHandle($handle, checked, animateToggle = true) { * @returns {Checkbox & HTMLLabelElement} */ function Checkbox(text, checked, name, id, type, ref, size, isSwitch) { + let title; + let ariaLabel; + let description; if (typeof text === "object") { - ({ text, checked, name, id, type, ref, size, isSwitch } = text); + ({ + text, + checked, + name, + id, + type, + ref, + size, + isSwitch, + title, + ariaLabel, + description, + } = text); } size = size || "1rem"; const $input = ref || Ref(); const $handle = Ref(); + const label = ariaLabel || title; const $checkbox = (