Skip to content

Commit

Permalink
fix(chat-custom-width): Correct slider tooltip unit to be %
Browse files Browse the repository at this point in the history
- Fix the unit of the custom width slider tooltip to display percentages (%) instead of REM

Changes summary:
- Corrected the unit displayed in the custom width slider tooltip:
  - The tooltip now correctly displays percentages (%) instead of REM units, providing a clearer indication of the slider value.
  • Loading branch information
itsmartashub committed Jul 14, 2024
1 parent d8c62cb commit 4c4a48a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/app/components/renderSwitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ function renderSmallCardOption({
return `
<div
class="card card--range ${isLocked ? 'is-locked' : ''}"
data-gpth-err="${min}${unit} &hArr; ${max}${unit}"
data-gpth-err="${min}${inputPlaceholder === '100%' ? '%' : unit} &hArr; ${max}${
inputPlaceholder === '100%' ? '%' : unit
}"
>
<label
for="${sanitizedInputId}"
Expand Down

0 comments on commit 4c4a48a

Please sign in to comment.