@aquera/nile-elements 0.0.17 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button/nile-button.css.js +113 -64
  2. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button/nile-button.css.js.map +1 -1
  3. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.css.js +4 -0
  4. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.css.js.map +1 -1
  5. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.d.ts +1 -0
  6. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.js +25 -10
  7. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.js.map +1 -1
  8. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-group/nile-radio-group.js +1 -1
  9. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-group/nile-radio-group.js.map +1 -1
  10. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.css.js +9 -6
  11. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.css.js.map +1 -1
  12. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.d.ts +1 -0
  13. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.js +9 -3
  14. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.js.map +1 -1
  15. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
  16. package/demo/index.html +18 -1
  17. package/dist/index.iife.js +324 -263
  18. package/dist/nile-button/nile-button.css.cjs.js +1 -1
  19. package/dist/nile-button/nile-button.css.cjs.js.map +1 -1
  20. package/dist/nile-button/nile-button.css.esm.js +115 -66
  21. package/dist/nile-content-editor/nile-content-editor.cjs.js +1 -1
  22. package/dist/nile-content-editor/nile-content-editor.cjs.js.map +1 -1
  23. package/dist/nile-content-editor/nile-content-editor.css.cjs.js +1 -1
  24. package/dist/nile-content-editor/nile-content-editor.css.cjs.js.map +1 -1
  25. package/dist/nile-content-editor/nile-content-editor.css.esm.js +4 -0
  26. package/dist/nile-content-editor/nile-content-editor.esm.js +7 -7
  27. package/dist/nile-radio-group/nile-radio-group.cjs.js +1 -1
  28. package/dist/nile-radio-group/nile-radio-group.cjs.js.map +1 -1
  29. package/dist/nile-radio-group/nile-radio-group.esm.js +1 -1
  30. package/dist/nile-switcher/nile-switcher.cjs.js +1 -1
  31. package/dist/nile-switcher/nile-switcher.cjs.js.map +1 -1
  32. package/dist/nile-switcher/nile-switcher.css.cjs.js +1 -1
  33. package/dist/nile-switcher/nile-switcher.css.cjs.js.map +1 -1
  34. package/dist/nile-switcher/nile-switcher.css.esm.js +11 -8
  35. package/dist/nile-switcher/nile-switcher.esm.js +26 -21
  36. package/dist/src/nile-button/nile-button.css.js +113 -64
  37. package/dist/src/nile-button/nile-button.css.js.map +1 -1
  38. package/dist/src/nile-content-editor/nile-content-editor.css.js +4 -0
  39. package/dist/src/nile-content-editor/nile-content-editor.css.js.map +1 -1
  40. package/dist/src/nile-content-editor/nile-content-editor.d.ts +1 -0
  41. package/dist/src/nile-content-editor/nile-content-editor.js +25 -10
  42. package/dist/src/nile-content-editor/nile-content-editor.js.map +1 -1
  43. package/dist/src/nile-radio-group/nile-radio-group.js +1 -1
  44. package/dist/src/nile-radio-group/nile-radio-group.js.map +1 -1
  45. package/dist/src/nile-switcher/nile-switcher.css.js +9 -6
  46. package/dist/src/nile-switcher/nile-switcher.css.js.map +1 -1
  47. package/dist/src/nile-switcher/nile-switcher.d.ts +1 -0
  48. package/dist/src/nile-switcher/nile-switcher.js +9 -3
  49. package/dist/src/nile-switcher/nile-switcher.js.map +1 -1
  50. package/dist/tsconfig.tsbuildinfo +1 -1
  51. package/package.json +1 -1
  52. package/src/nile-button/nile-button.css.ts +113 -64
  53. package/src/nile-content-editor/nile-content-editor.css.ts +4 -0
  54. package/src/nile-content-editor/nile-content-editor.ts +24 -10
  55. package/src/nile-radio-group/nile-radio-group.ts +1 -1
  56. package/src/nile-switcher/nile-switcher.css.ts +9 -6
  57. package/src/nile-switcher/nile-switcher.ts +10 -2
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "0.0.17",
6
+ "version": "0.0.19",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -74,127 +74,176 @@ export const styles = css`
74
74
  }
75
75
 
76
76
  .button--standard.button--secondary {
77
- background-color: var(--nile-colors-neutral-400);
78
- border-color: var(--nile-colors-neutral-400);
79
- color: var(--nile-colors-neutral-900);
77
+ background-color: var(--nile-colors-button-secondary);
78
+ border-color: var(--nile-colors-button-secondary-border);
79
+ color: var(--nile-colors-button-secondary-text);
80
80
  }
81
81
 
82
82
  .button--standard.button--secondary:hover:not(.button--disabled) {
83
- background-color: var(--nile-colors-neutral-500);
84
- border : none;
85
- box-shadow: 0px 4px 8px var(--nile-colors-dark-200);
86
- color: var(--nile-colors-neutral-900);
83
+ background-color: var(--nile-colors-button-secondary-hover);
84
+ border-color: var(--nile-colors-button-secondary-border);
85
+ color: var(--nile-colors-button-secondary-text);
87
86
  }
88
87
 
89
88
  .button--standard.button--secondary:active:not(.button--disabled) {
90
- background-color: var(--nile-colors-neutral-500);
91
- border-color: var(--nile-colors-neutral-700);
92
- color: var(--nile-colors-neutral-900);
89
+ background-color: var(--nile-colors-button-secondary-pressed);
90
+ border-color: var(--nile-colors-button-secondary-pressed-border);
91
+ color: var(--nile-colors-button-secondary-text);
93
92
  }
94
93
 
95
94
  .button--standard.button--secondary.button--disabled {
96
- background-color: var(--nile-colors-neutral-400);
97
- border-color: var(--nile-colors-neutral-400);
98
- color: var(--nile-colors-dark-500);
95
+ background-color: var(--nile-colors-button-secondary-disabled);
96
+ border-color: var(--nile-colors-button-secondary-disabled-border);
97
+ color: var(--nile-colors-button-secondary-disabled-text);
99
98
  cursor: not-allowed;
100
99
  }
101
100
 
102
101
  .button--standard.button--secondary.button--disabled:hover,
103
102
  .button--standard.button--secondary.button--disabled:active {
104
- background-color: var(--nile-colors-neutral-400);
105
- border-color: var(--nile-colors-neutral-400);
106
- color: var(--nile-colors-dark-500);
107
- box-shadow: none;
103
+ background-color: var(--nile-colors-button-secondary-disabled);
104
+ border-color: var(--nile-colors-button-secondary-disabled-border);
105
+ color: var(--nile-colors-button-secondary-disabled-text);
106
+ cursor: not-allowed;
108
107
  }
109
108
 
110
109
  /* Primary */
111
110
  .button--standard.button--primary {
112
- background-color: var(--nile-colors-primary-600);
113
- border-color: var(--nile-colors-primary-600);
114
- color: var(--nile-colors-white-base);
111
+ background-color: var(--nile-colors-button-primary);
112
+ border-color: var(--nile-colors-button-primary-border);
113
+ color: var(--nile-colors-button-primary-text);
115
114
  }
116
115
 
117
116
  .button--standard.button--primary:hover:not(.button--disabled) {
118
- background-color: var(--nile-colors-primary-700);
119
- border-color: var(--nile-colors-primary-700);
120
- box-shadow: 0px 4px 8px var(--nile-colors-dark-200);
121
- color: var(--nile-colors-white-base);
117
+ background-color: var(--nile-colors-button-primary-hover);
118
+ border-color: var(--nile-colors-button-primary-hover);
119
+ color: var(--nile-colors-button-primary-text);
122
120
  }
123
121
 
124
122
  .button--standard.button--primary:active:not(.button--disabled) {
125
- background-color: var(--nile-colors-primary-700);
126
- border-color: var(--nile-colors-primary-900);
127
- color: var(--nile-colors-white-base);
123
+ background-color: var(--nile-colors-button-primary-pressed);
124
+ border-color: var(--nile-colors-button-primary-pressed);
125
+ color: var(--nile-colors-button-primary-text);
128
126
  }
129
127
 
130
128
  .button--standard.button--primary.button--disabled {
131
- background-color: var(--nile-colors-neutral-700);
132
- border-color: var(--nile-colors-neutral-700);
133
- color: var(--nile-colors-white-base);
129
+ background-color: var(--nile-colors-button-primary-disabled);
130
+ border-color: var(--nile-colors-button-primary-disabled);
131
+ color: var(--nile-colors-button-primary-disabled-text);
134
132
  cursor: not-allowed;
135
133
  }
136
134
 
137
135
  .button--standard.button--primary.button--disabled:hover,
138
136
  .button--standard.button--primary.button--disabled:active {
139
- background-color: var(--nile-colors-neutral-700);
140
- border-color: var(--nile-colors-neutral-700);
141
- color: var(--nile-colors-white-base);
142
- box-shadow: none;
137
+ background-color: var(--nile-colors-button-primary-disabled);
138
+ border-color: var(--nile-colors-button-primary-disabled);
139
+ color: var(--nile-colors-button-primary-disabled-text);
140
+ cursor: not-allowed;
143
141
  }
144
142
 
145
143
  /* Tertiary */
146
144
  .button--standard.button--tertiary {
147
- background-color: var(--nile-colors-white-base);
148
- border-color: var(--nile-colors-neutral-500);
149
- color: var(--nile-colors-dark-900);
150
- box-shadow: 0px 2px 4px var(--nile-colors-dark-200);
145
+ background-color: var(--nile-colors-button-tertiary);
146
+ border-color: var(--nile-colors-button-tertiary-border);
147
+ color: var(--nile-colors-button-tertiary-text);
151
148
  }
152
149
 
153
150
  .button--standard.button--tertiary:hover:not(.button--disabled) {
154
- background-color: var(--nile-colors-neutral-100);
151
+ background-color: var(--nile-colors-button-tertiary-hover);
155
152
  border-color: var(--nile-colors-neutral-500);
156
- box-shadow: 0px 4px 8px var(--nile-colors-dark-200);
157
- color: var(--nile-colors-neutral-700);
153
+ color: var(--nile-colors-button-tertiary-text);
158
154
  }
159
155
 
160
156
  .button--standard.button--tertiary:active:not(.button--disabled) {
161
- background-color: var(--nile-colors-neutral-400);
162
- border-color: var(--nile-colors-neutral-700);
163
- color: var(--nile-colors-neutral-700);
164
- }
165
- .button--standard.button--tertiary.button--disabled {
166
- border-color: #e5e9eb;
167
- background-color: var(--nile-colors-white-base);
168
- color: var(--nile-colors-neutral-700);
169
- cursor: not-allowed;
170
- box-shadow: none;
157
+ background-color: var(--nile-colors-button-tertiary-pressed);
158
+ border-color: var(--nile-colors-button-tertiary-pressed-border);
159
+ color: var(--nile-colors-button-tertiary-text);
171
160
  }
172
161
 
162
+ .button--standard.button--tertiary.button--disabled,
173
163
  .button--standard.button--tertiary.button--disabled:hover,
174
164
  .button--standard.button--tertiary.button--disabled:active {
175
- border-color: #e5e9eb;
176
- background-color: var(--nile-colors-white-base);
177
- color: var(--nile-colors-neutral-700);
165
+ border-color: var(--nile-colors-neutral-500);
166
+ background-color: var(--nile-colors-button-tertiary-disabled);
167
+ color: var(--nile-colors-button-tertiary-disabled-text);
168
+ cursor: not-allowed;
178
169
  box-shadow: none;
179
170
  }
180
171
 
181
172
  /* caution */
182
173
  .button--standard.button--caution {
183
- background-color: var(--nile-colors-red-500);
184
- border-color: var(--nile-colors-red-500);
185
- color: var(--nile-colors-white-base);
174
+ background-color: var(--nile-colors-button-caution);
175
+ border-color: var(--nile-colors-button-caution);
176
+ color: var(--nile-colors-button-caution-text);
186
177
  }
178
+
187
179
  .button--standard.button--caution:hover:not(.button--disabled) {
188
- background-color: var(--nile-colors-red-700);
189
- border-color: var(--nile-colors-red-700);
190
- color: var(--nile-colors-white-base);
180
+ background-color: var(--nile-colors-button-caution-hover);
181
+ border-color: var(--nile-colors-button-caution-hover);
182
+ color: var(--nile-colors-button-caution-text);
191
183
  }
192
184
 
193
185
  .button--standard.button--caution:active:not(.button--disabled) {
194
- background-color: var(--nile-colors-red-700);
195
- border-color: var(--nile-colors-red-500);
196
- color: var(--nile-colors-white-base);
197
- }
186
+ background-color: var(--nile-colors-button-caution-pressed);
187
+ border-color: var(--nile-colors-button-caution-pressed);
188
+ color: var(--nile-colors-button-caution-text);
189
+ }
190
+
191
+ .button--standard.button--caution.button--disabled,
192
+ .button--standard.button--caution.button--disabled:hover,
193
+ .button--standard.button--caution.button--disabled:active {
194
+ background-color: var(--nile-colors-button-caution-disabled);
195
+ border-color: var(--nile-colors-button-caution-disabled);
196
+ color: var(--nile-colors-button-caution-disabled-text);
197
+ }
198
+
199
+
200
+ /* Primary Variant - Nile Icon Fill */
201
+ .button--standard.button--primary ::slotted(nile-icon) {
202
+ --nile-svg-fill: var(--nile-colors-button-primary-text) !important;
203
+ }
204
+ .button--standard.button--primary:hover:not(.button--disabled) ::slotted(nile-icon),
205
+ .button--standard.button--primary:active:not(.button--disabled) ::slotted(nile-icon) {
206
+ --nile-svg-fill: var(--nile-colors-button-primary-text) !important;
207
+ }
208
+ .button--standard.button--primary.button--disabled ::slotted(nile-icon) {
209
+ --nile-svg-fill: var(--nile-colors-button-primary-disabled-text) !important;
210
+ }
211
+
212
+ /* Secondary Variant */
213
+ .button--standard.button--secondary ::slotted(nile-icon) {
214
+ --nile-svg-fill: var(--nile-colors-button-secondary-text) !important;
215
+ }
216
+ .button--standard.button--secondary:hover:not(.button--disabled) ::slotted(nile-icon),
217
+ .button--standard.button--secondary:active:not(.button--disabled) ::slotted(nile-icon) {
218
+ --nile-svg-fill: var(--nile-colors-button-secondary-text) !important;
219
+ }
220
+ .button--standard.button--secondary.button--disabled ::slotted(nile-icon) {
221
+ --nile-svg-fill: var(--nile-colors-button-secondary-disabled-text) !important;
222
+ }
223
+
224
+ /* Tertiary Variant */
225
+ .button--standard.button--tertiary ::slotted(nile-icon) {
226
+ --nile-svg-fill: var(--nile-colors-button-tertiary-text) !important;
227
+ }
228
+ .button--standard.button--tertiary:hover:not(.button--disabled) ::slotted(nile-icon),
229
+ .button--standard.button--tertiary:active:not(.button--disabled) ::slotted(nile-icon) {
230
+ --nile-svg-fill: var(--nile-colors-button-tertiary-text) !important;
231
+ }
232
+ .button--standard.button--tertiary.button--disabled ::slotted(nile-icon) {
233
+ --nile-svg-fill: var(--nile-colors-button-tertiary-disabled-text) !important;
234
+ }
235
+
236
+ /* Caution Variant */
237
+ .button--standard.button--caution ::slotted(nile-icon) {
238
+ --nile-svg-fill: var(--nile-colors-button-caution-text) !important;
239
+ }
240
+ .button--standard.button--caution:hover:not(.button--disabled) ::slotted(nile-icon),
241
+ .button--standard.button--caution:active:not(.button--disabled) ::slotted(nile-icon) {
242
+ --nile-svg-fill: var(--nile-colors-button-caution-text) !important;
243
+ }
244
+ .button--standard.button--caution.button--disabled ::slotted(nile-icon) {
245
+ --nile-svg-fill: var(--nile-colors-button-caution-disabled-text) !important;
246
+ }
198
247
 
199
248
  /*
200
249
  * Outline buttons
@@ -96,6 +96,10 @@ export const styles = css`
96
96
  .asterik {
97
97
  color: #e5434d;
98
98
  }
99
+
100
+ .no-border {
101
+ border: none;
102
+ }
99
103
  `;
100
104
 
101
105
  export default [styles];
@@ -61,6 +61,7 @@ export class NileContentEditor extends NileElement {
61
61
  @property({ attribute: 'error-message' }) errorMessage = '';
62
62
 
63
63
  @property({ attribute: 'error' }) error = false;
64
+ @property({ attribute: 'noborder' }) noborder = false;
64
65
 
65
66
  static styles: CSSResultGroup = styles;
66
67
 
@@ -83,17 +84,17 @@ export class NileContentEditor extends NileElement {
83
84
  }
84
85
 
85
86
  addOpenListeners() {
86
- window.addEventListener('click', this.handleOutsideClick);
87
- window.addEventListener('cut', this.handleClipboardEvent);
88
- window.addEventListener('copy', this.handleClipboardEvent);
89
- window.addEventListener('paste', this.handleClipboardEvent);
87
+ this.addEventListener('click', this.handleOutsideClick);
88
+ this.addEventListener('cut', this.handleClipboardEvent);
89
+ this.addEventListener('copy', this.handleClipboardEvent);
90
+ this.addEventListener('paste', this.handleClipboardEvent);
90
91
  }
91
92
 
92
93
  removeOpenListeners() {
93
- window.removeEventListener('click', this.handleOutsideClick);
94
- window.removeEventListener('cut', this.handleClipboardEvent);
95
- window.removeEventListener('copy', this.handleClipboardEvent);
96
- window.removeEventListener('paste', this.handleClipboardEvent);
94
+ this.removeEventListener('click', this.handleOutsideClick);
95
+ this.removeEventListener('cut', this.handleClipboardEvent);
96
+ this.removeEventListener('copy', this.handleClipboardEvent);
97
+ this.removeEventListener('paste', this.handleClipboardEvent);
97
98
  }
98
99
 
99
100
  async handleClipboardEvent(event: Event) {
@@ -106,7 +107,8 @@ export class NileContentEditor extends NileElement {
106
107
  break;
107
108
  case 'paste':
108
109
  event.preventDefault();
109
- let pastedText = await navigator.clipboard.readText();
110
+ let pastedText = '';
111
+ pastedText = await navigator.clipboard.readText();
110
112
  pastedText = pastedText
111
113
  .replace(/<(|\/)(html|body|meta|span)[^>]*?>/gi, '')
112
114
  .trim();
@@ -130,7 +132,7 @@ export class NileContentEditor extends NileElement {
130
132
  }
131
133
  }
132
134
 
133
- @watch('type', { waitUntilFirstUpdate: true })
135
+ @watch(['type', 'value'], { waitUntilFirstUpdate: true })
134
136
  handleTypeChange() {
135
137
  this.contentEditor.innerHTML = this.generateHTMLTagsWithValues(this.value);
136
138
  }
@@ -152,6 +154,15 @@ export class NileContentEditor extends NileElement {
152
154
  ) {
153
155
  return;
154
156
  }
157
+
158
+ if (event.code === KeyCode.ARROW_RIGHT) {
159
+ this.contentEditor.focus();
160
+ // select all the content in the element
161
+ document.execCommand('selectAll', false, undefined);
162
+ // collapse selection to the end
163
+
164
+ document?.getSelection()?.collapseToEnd();
165
+ }
155
166
  if (event.code === KeyCode.ESCAPE) {
156
167
  event.preventDefault();
157
168
  this.toggleDropdown(false);
@@ -172,6 +183,7 @@ export class NileContentEditor extends NileElement {
172
183
 
173
184
  filterOptions() {
174
185
  this.filteredOptions = this.options;
186
+ this.filteredValue = this.filteredValue.trim();
175
187
  if (!!this.options.length && !!this.filteredValue) {
176
188
  this.filteredOptions = this.options.filter(item =>
177
189
  item.includes(this.filteredValue)
@@ -292,6 +304,7 @@ export class NileContentEditor extends NileElement {
292
304
  const hasError = !!this.error;
293
305
  const hasErrorMessage = !!this.errorMessage;
294
306
  const readonly = !!this.readonly;
307
+ const noborder = !!this.noborder;
295
308
  const type = this.type;
296
309
  return html`
297
310
  <nile-popup
@@ -319,6 +332,7 @@ export class NileContentEditor extends NileElement {
319
332
  'content-editable-input': true,
320
333
  error: hasError || hasErrorMessage,
321
334
  'read-only': readonly,
335
+ 'no-border': noborder,
322
336
  'text-area': type === 'text-area' ? true : false,
323
337
  })}
324
338
  @keydown=${this.handlekeyDown}
@@ -268,7 +268,7 @@ export class NileRadioGroup extends NileElement {
268
268
  ${defaultSlot}
269
269
  `
270
270
  : html`
271
- <div class="${this.labelInline ? `form-control--inline-radio`:``}"> ${defaultSlot}</div> `}
271
+ <div part="options-base" class="${this.labelInline ? `form-control--inline-radio`:``}"> ${defaultSlot}</div> `}
272
272
  </div>
273
273
 
274
274
  ${
@@ -22,15 +22,18 @@ export const styles = css`
22
22
  }
23
23
  .input-container {
24
24
  display: flex;
25
+ gap: 0.5rem;
25
26
  }
26
27
 
27
- .input-container > :first-child {
28
- width: 100%;
29
- padding-right: 12px;
28
+ .tooltip-container {
29
+ display: flex;
30
+ flex-grow: 1;
31
+ flex-shrink: 0;
30
32
  }
31
- .flex-start {
32
- align-items: flex-start;
33
- padding-top: 10px;
33
+
34
+ .input-container > :first-child {
35
+ flex-grow: 1;
36
+ flex-shrink: 0;
34
37
  }
35
38
 
36
39
  nile-radio {
@@ -57,6 +57,7 @@ export interface switchInputType {
57
57
  options?: Array<any>;
58
58
  helperText?: string;
59
59
  multiple?: boolean;
60
+ noborder?: boolean;
60
61
  }
61
62
 
62
63
  export enum INPUT_TYPE {
@@ -199,12 +200,14 @@ export class NileSwitcher extends NileElement {
199
200
  errorMessage,
200
201
  type,
201
202
  readonly,
203
+ noborder,
202
204
  } = Input;
203
205
  return html`<nile-content-editor
204
206
  .value=${value}
205
207
  .options=${options}
206
208
  .type=${type}
207
209
  .readonly=${readonly}
210
+ .noborder=${noborder}
208
211
  .errorMessage=${errorMessage}
209
212
  @nile-change=${(e: CustomEvent) => {
210
213
  this.handleChange(e, inputType, inputTypeName);
@@ -241,12 +244,17 @@ export class NileSwitcher extends NileElement {
241
244
  ? defaultHelperText
242
245
  : `switch to ${defaultInput.inputType}`;
243
246
 
244
- return html` <nile-tooltip content=${helperText} placement="bottom">
247
+ return html` <nile-tooltip
248
+ class=${classMap({
249
+ 'tooltip-container': true,
250
+ })}
251
+ content=${helperText}
252
+ placement="bottom"
253
+ >
245
254
  <nile-icon
246
255
  size="14"
247
256
  class=${classMap({
248
257
  'pointer-cursor': true,
249
- 'flex-start': true,
250
258
  })}
251
259
  .name=${icon}
252
260
  color="#005EA6"