|
4 | 4 | id="@UniqueId" |
5 | 5 | style="@StyleBuilder.Value" |
6 | 6 | class="@ClassBuilder.Value"> |
7 | | - @if (LabelFragment is not null) |
| 7 | + @if (LabelTemplate is not null) |
8 | 8 | { |
9 | | - <label class="lbl" id="@DropdownLabelId">@LabelFragment</label> |
| 9 | + <label class="label" id="@_dropdownLabelId">@LabelTemplate</label> |
10 | 10 | } |
11 | 11 | else if (Label.HasValue()) |
12 | 12 | { |
13 | | - <label class="lbl" id="@DropdownLabelId">@Label</label> |
| 13 | + <label class="label" id="@_dropdownLabelId">@Label</label> |
14 | 14 | } |
15 | 15 |
|
16 | | - <div class="drp-overlay" |
17 | | - id="@DropDownOverlayId" |
18 | | - @onclick="CloseCallout"></div> |
| 16 | + <div class="overlay" id="@_dropDownOverlayId" @onclick="CloseCallout"></div> |
19 | 17 |
|
20 | | - <div class="drp-wrapper" |
21 | | - id="@DropDownId" |
| 18 | + <div class="wrapper" |
| 19 | + id="@_dropDownId" |
22 | 20 | tabindex=@(IsEnabled ? 0 : -1) |
23 | 21 | role="combobox" |
24 | 22 | data-is-focusable="true" |
|
27 | 25 | aria-required="@IsRequired" |
28 | 26 | aria-disabled="@(IsEnabled is false)" |
29 | 27 | aria-haspopup="listbox" |
30 | | - aria-controls="@(IsOpen ? $"{DropDownId}-list" : null)" |
| 28 | + aria-controls="@(IsOpen ? $"{_dropDownId}-list" : null)" |
31 | 29 | title="@Title" |
32 | 30 | @onclick="HandleClick"> |
33 | | - <span class="drp-wrapper-txt" |
34 | | - id="@DropDownOptionId" |
| 31 | + <span class="text-container" |
| 32 | + id="@_dropDownOptionId" |
35 | 33 | aria-live="polite" |
36 | 34 | aria-atomic="true" |
37 | 35 | aria-invalid="false"> |
38 | | - @if (Text.HasValue()) |
| 36 | + @if (_text.HasValue()) |
39 | 37 | { |
40 | 38 | @if (TextTemplate is not null) |
41 | 39 | { |
42 | 40 | @TextTemplate(this) |
43 | 41 | } |
44 | 42 | else |
45 | 43 | { |
46 | | - @Text |
| 44 | + @_text |
47 | 45 | } |
48 | 46 | } |
49 | 47 | else |
|
58 | 56 | } |
59 | 57 | } |
60 | 58 | </span> |
61 | | - <span class="drp-wrapper-ic"> |
62 | | - @if (CaretDownFragment is not null) |
| 59 | + <span class="icon-container"> |
| 60 | + @if (CaretDownTemplate is not null) |
63 | 61 | { |
64 | | - @CaretDownFragment |
| 62 | + @CaretDownTemplate |
65 | 63 | } |
66 | 64 | else |
67 | 65 | { |
|
71 | 69 | </div> |
72 | 70 |
|
73 | 71 | <div class="items-wrapper" |
74 | | - id="@DropDownCalloutId" |
| 72 | + id="@_dropDownCalloutId" |
75 | 73 | tabindex="0" |
76 | 74 | role="listbox" |
77 | | - aria-labelledby="@DropdownLabelId"> |
| 75 | + aria-labelledby="@_dropdownLabelId"> |
78 | 76 | @if (IsResponsiveModeEnabled) |
79 | 77 | { |
80 | | - <div class="responsive-label-contianer"> |
81 | | - @if (LabelFragment is not null) |
| 78 | + <div class="responsive-label-container"> |
| 79 | + @if (LabelTemplate is not null) |
82 | 80 | { |
83 | | - <label class="lbl">@LabelFragment</label> |
| 81 | + <label class="label">@LabelTemplate</label> |
84 | 82 | } |
85 | 83 | else if (Label.HasValue()) |
86 | 84 | { |
87 | | - <label class="lbl">@Label</label> |
| 85 | + <label class="label">@Label</label> |
88 | 86 | } |
89 | 87 | <button class="close-btn" |
90 | 88 | type="button" |
|
117 | 115 | @oninput="@HandleFilterChange" /> |
118 | 116 | @if (_searchText.HasValue()) |
119 | 117 | { |
120 | | - <div class="search-clear-btn-container"> |
121 | | - <button class="search-clear-btn" |
| 118 | + <div class="clear-btn-container"> |
| 119 | + <button class="clear-btn" |
122 | 120 | type="button" |
123 | 121 | aria-label="Clear text" |
124 | 122 | aria-hidden="true" |
|
133 | 131 | </div> |
134 | 132 | } |
135 | 133 |
|
136 | | - <div @ref="_scrollWrapperElement" id="@DropDownCalloutId" class="scroll-wrapper"> |
| 134 | + <div @ref="_scrollWrapperElement" id="@_dropDownCalloutId" class="scroll-wrapper"> |
137 | 135 | @if (Virtualize) |
138 | 136 | { |
139 | 137 | if (ItemsProvider is null) |
|
189 | 187 | @if (IsMultiSelect) |
190 | 188 | { |
191 | 189 | <div style="@(dropDownItem.item.IsHidden ? "display: none" : string.Empty)" class="@GetCssClassForItem(dropDownItem.item)"> |
192 | | - <label class="drp-chb-lbl" @onclick="@((e) => HandleItemClick(dropDownItem.item))"> |
193 | | - <div class="drp-chb-checkbox"> |
194 | | - <i class="drp-chb-checkmark bit-icon bit-icon--Accept" |
| 190 | + <label class="checkbox-container" @onclick="@((e) => HandleItemClick(dropDownItem.item))"> |
| 191 | + <div class="checkbox"> |
| 192 | + <i class="checkmark bit-icon bit-icon--Accept" |
195 | 193 | aria-hidden="true" |
196 | 194 | aria-label="@dropDownItem.item.Text"></i> |
197 | 195 | </div> |
198 | 196 |
|
199 | | - <span class="drp-chb-txt no-text-select"> |
| 197 | + <span class="text no-text-select"> |
200 | 198 | @if (ItemTemplate is not null) |
201 | 199 | { |
202 | 200 | @ItemTemplate(dropDownItem.item) |
|
211 | 209 | } |
212 | 210 | else |
213 | 211 | { |
214 | | - <button class="drp-item @(dropDownItem.item.IsSelected ? "drp-slc" : string.Empty)" |
| 212 | + <button class="item @(dropDownItem.item.IsSelected ? "selected" : string.Empty)" |
215 | 213 | style="@(dropDownItem.item.IsHidden ? "display: none" : string.Empty)" |
216 | 214 | type="button" |
217 | 215 | role="option" |
|
0 commit comments