@ecl/search-form 5.0.0-alpha.14 → 5.0.0-alpha.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.
package/package.json CHANGED
@@ -2,15 +2,15 @@
2
2
  "name": "@ecl/search-form",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "5.0.0-alpha.14",
5
+ "version": "5.0.0-alpha.16",
6
6
  "description": "ECL Search Form",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
10
  "style": "search-form.scss",
11
11
  "dependencies": {
12
- "@ecl/button": "5.0.0-alpha.14",
13
- "@ecl/form-group": "5.0.0-alpha.14"
12
+ "@ecl/button": "5.0.0-alpha.16",
13
+ "@ecl/form-group": "5.0.0-alpha.16"
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
@@ -26,5 +26,5 @@
26
26
  "design-system",
27
27
  "twig"
28
28
  ],
29
- "gitHead": "5f790fa1e567483d23464f81405996c9e1c4f4f5"
29
+ "gitHead": "0842ff3b72ce9099c13e5407ad2b5eda9d06ba69"
30
30
  }
@@ -62,9 +62,10 @@
62
62
  {% endif %}
63
63
  {% if _button is not empty %}
64
64
  {% include '@ecl/button/button.html.twig' with _button|merge({
65
+ hide_label: true,
65
66
  icon: {
66
67
  name: 'search',
67
- size: 'xs',
68
+ size: 'm',
68
69
  },
69
70
  extra_classes: 'ecl-search-form__button' ~ ( _button.extra_classes ? ' ' ~ _button.extra_classes : ''),
70
71
  }) only %}
package/search-form.scss CHANGED
@@ -41,7 +41,7 @@ $button-border-width: 1px;
41
41
  width: 100%;
42
42
  }
43
43
 
44
- .ecl-search-form__button {
44
+ .ecl-search-form .ecl-search-form__button {
45
45
  border-bottom: $button-border-width solid
46
46
  map.get($search-form, 'button-border-color');
47
47
  border-end-start-radius: 0;
@@ -51,11 +51,16 @@ $button-border-width: 1px;
51
51
  border-top: $button-border-width solid
52
52
  map.get($search-form, 'button-border-color');
53
53
  border-start-start-radius: 0;
54
- height: 2.75rem;
54
+ height: map.get($search-form, 'button-height');
55
+ width: map.get($search-form, 'button-height');
55
56
  position: relative;
56
57
 
57
- &.ecl-button--ghost:not(:hover, :focus-visible) {
58
- background-color: #fff;
58
+ &:hover {
59
+ border-color: map.get($search-form, 'button-border-color-hover');
60
+ }
61
+
62
+ &:focus-visible {
63
+ outline-offset: -2px;
59
64
  }
60
65
 
61
66
  &::before {
@@ -70,30 +75,8 @@ $button-border-width: 1px;
70
75
  }
71
76
  }
72
77
 
73
- .ecl-search-form__button .ecl-button__label {
74
- display: none;
75
- margin-inline-start: 0;
76
- }
77
-
78
78
  .ecl-search-form__button .ecl-button__icon {
79
79
  display: block;
80
80
  fill: currentcolor;
81
81
  margin: 0;
82
82
  }
83
-
84
- /* stylelint-disable-next-line order/order */
85
- @include breakpoints.up('l') {
86
- .ecl-search-form__button .ecl-button__label {
87
- display: block;
88
- }
89
-
90
- .ecl-search-form__button .ecl-button__icon {
91
- margin-inline-end: var(--s-xs);
92
- }
93
-
94
- .ecl-search-form__button {
95
- &::before {
96
- top: map.get($search-form, 'button-padding-vertical-desktop');
97
- }
98
- }
99
- }