Skip to content

Commit

Permalink
fix(bug): Custom color coral ui element is non-functional
Browse files Browse the repository at this point in the history
  • Loading branch information
Pareesh Gupta authored and Pareesh Gupta committed Jul 30, 2024
1 parent 62baead commit a061622
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions coral-component-colorinput/src/scripts/ColorInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,8 @@ const ColorInput = Decorator(class extends BaseFormField(BaseComponent(HTMLEleme
if (this.showProperties === showProperties.OFF &&
this.showSwatches === showSwatches.ON) {
this._elements.colorPreview.label.textContent = i18n.get('Swatches');
if (this.previousSibling) {
this.previousSibling.setAttribute('aria-label', i18n.get('Confirm hex value'));
if (this.previousElementSibling) {
this.previousElementSibling.setAttribute('aria-label', i18n.get('Confirm hex value'));
}
this._elements.overlay.setAttribute('aria-label', i18n.get('Swatches'));
} else {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a061622

Please sign in to comment.