Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 6055341

Browse files
author
Vasilii Burlacu
committed
Added text adjustments and moved result screenshot to appropriate path
1 parent 75ca94d commit 6055341

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

guides/v2.2/javascript-dev-guide/widgets/widget_dropdown.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ Widget source file is [lib/web/mage/dropdowns.js].
1212
The dropdown widget allows to show show on storefront a select box with custom
1313
content for each of available options.
1414

15-
{:.bs-callout .bs-callout-info} Dropdown widget is not meant to replace default
16-
HTML select element. By replacing default select in store forms don't expect
17-
the store to work 100% the same as before changes.
18-
1915

2016
**Usages:**
2117
- [Shipping policy]
@@ -50,8 +46,8 @@ the store to work 100% the same as before changes.
5046

5147
### Styles
5248

53-
By default the dropdown is not styled. But, there is a handy
54-
[LESS mixin `.lib-dropdown()`] that comes to the rescue:
49+
The dropdown widget is not styled out of the box.
50+
Use [LESS mixin `.lib-dropdown()`] to customize it.
5551

5652
```less
5753
//
@@ -186,9 +182,7 @@ Looking at the HTML markup, given element has to be inside the `parent` option.
186182

187183
### `activeClass` {#d_activeClass}
188184

189-
The CSS class that reflects the current state of the dropdown widget.
190-
Given class is added to the element widget was initialized when the dropdown
191-
menu should be visible.
185+
Given class is added to the widget element when the menu is visible.
192186

193187
**Type**: String
194188

@@ -199,4 +193,4 @@ menu should be visible.
199193

200194
The result is a custom select dropdown with custom content as options.
201195

202-
![Dropdown Widget]({{ page.baseurl }}/javascript-dev-guide/widgets/images/dropdown-widget-result.png)
196+
![Dropdown Widget]({{ site.baseurl }}/common/images/widget/dropdown-widget-result.jpg)

0 commit comments

Comments
 (0)