diff --git a/packages/main/src/ColorPicker.ts b/packages/main/src/ColorPicker.ts index e863af070be8..c0d28ee5e943 100644 --- a/packages/main/src/ColorPicker.ts +++ b/packages/main/src/ColorPicker.ts @@ -24,6 +24,8 @@ import type Input from "./Input.js"; import type Slider from "./Slider.js"; import { + COLORPICKER_LABEL, + COLORPICKER_SLIDER_GROUP, COLORPICKER_ALPHA_SLIDER, COLORPICKER_HUE_SLIDER, COLORPICKER_HEX, @@ -531,6 +533,14 @@ class ColorPicker extends UI5Element implements IFormInputElement { && this._colorValue.B === value.b; } + get colorPickerLabel() { + return ColorPicker.i18nBundle.getText(COLORPICKER_LABEL); + } + + get sliderGroupLabel() { + return ColorPicker.i18nBundle.getText(COLORPICKER_SLIDER_GROUP); + } + get hueSliderLabel() { return ColorPicker.i18nBundle.getText(COLORPICKER_HUE_SLIDER); } diff --git a/packages/main/src/ColorPickerTemplate.tsx b/packages/main/src/ColorPickerTemplate.tsx index e7f7fd2e2637..5825777f2350 100644 --- a/packages/main/src/ColorPickerTemplate.tsx +++ b/packages/main/src/ColorPickerTemplate.tsx @@ -6,7 +6,11 @@ import Button from "./Button.js"; export default function ColorPickerTemplate(this: ColorPicker) { return ( -
+
-
+