iconograph-ui 1.4.15 → 1.4.16

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.
@@ -3,12 +3,14 @@
3
3
  export let clickEvent;
4
4
  </script>
5
5
 
6
- <button on:click|stopPropagation={clickEvent} >
6
+ <!-- svelte-ignore a11y_click_events_have_key_events -->
7
+ <!-- svelte-ignore a11y_no_static_element_interactions -->
8
+ <div class="button" on:click|preventDefault|stopPropagation={clickEvent}> <!-- Prevent button default submit event when pressing enter-->
7
9
  {button.label}
8
- </button>
10
+ </div>
9
11
 
10
12
  <style>
11
- button {
13
+ .button {
12
14
  min-width: 100px;
13
15
  display: inline-block;
14
16
  background-color: var(--theme-main-color);
@@ -28,15 +30,15 @@ button {
28
30
  padding: 0px 20px;
29
31
  margin-top: 12px;
30
32
  }
31
- button:hover {
33
+ .button:hover {
32
34
  background-color: var(--theme-main-color-hover);
33
35
  }
34
- button:active {
36
+ .button:active {
35
37
  background-color: var(--theme-main-color-hover);
36
38
  position: relative;
37
39
  top: 1px;
38
40
  }
39
- button:disabled {
41
+ .button:disabled {
40
42
  background-color: var(--disabled-background-color) !important;
41
43
  }
42
44
  </style>
@@ -55,7 +55,7 @@
55
55
  <!-- svelte-ignore a11y_no_static_element_interactions -->
56
56
  <div class="dropdown {open ? 'open' : ''}" bind:this={dropdownEl} use:clickOutside on:click_outside={() => {open = false}}
57
57
  on:click|preventDefault|stopPropagation={openDropdown}>
58
- <input on:keyup={handleFilter} bind:value={search}
58
+ <input on:keyup={handleFilter} bind:value={search}
59
59
  class="search-input" type="text" placeholder="Rechercher un utilisateur..." />
60
60
 
61
61
  <!-- Liste déroulante -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iconograph-ui",
3
- "version": "1.4.15",
3
+ "version": "1.4.16",
4
4
  "description": "A Svelte Kit components library",
5
5
  "main": "./index.js",
6
6
  "svelte": "./index.js",