Skip to content

Commit

Permalink
feat(combobox): adding shadow parts
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-amorim committed Jul 8, 2024
1 parent df3171c commit c281b4a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export { DROPDOWN_DIRECTION, DROPDOWN_SIZE } from '../dropdown/dropdown';
* Combo box.
*
* @element cds-combo-box
* @csspart text-input - The text input. Usage `cds-combo-box::part(text-input)`
* @csspart list-box - The list box. Usage `cds-combo-box::part(list-box)`
* @fires cds-combo-box-beingselected
* The custom event fired before a combo box item is selected upon a user gesture.
* Cancellation of this event stops changing the user-initiated selection.
Expand Down Expand Up @@ -239,6 +241,7 @@ class CDSComboBox extends CDSDropdown {

return html`
<input
part="text-input"
id="trigger-button"
class="${inputClasses}"
?disabled=${disabled}
Expand Down Expand Up @@ -271,6 +274,7 @@ class CDSComboBox extends CDSDropdown {
? undefined
: html`
<div
part="list-box"
id="selection-button"
role="button"
class="${prefix}--list-box__selection"
Expand Down

0 comments on commit c281b4a

Please sign in to comment.