@alpinejs/docs 3.13.2-revision.2 → 3.13.2-revision.3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpinejs/docs",
3
- "version": "3.13.2-revision.2",
3
+ "version": "3.13.2-revision.3",
4
4
  "description": "The documentation for Alpine",
5
5
  "author": "Caleb Porzio",
6
6
  "license": "MIT"
@@ -76,7 +76,7 @@ For example, here's a simple dropdown anchored to the button that toggles it:
76
76
  <button x-ref="button" @click="open = ! open">Toggle</button>
77
77
  </div>
78
78
 
79
- <div x-show="open" x-anchor="$refs.button" class="bg-white rounded p-4 border shadow">
79
+ <div x-show="open" x-anchor="$refs.button" class="bg-white rounded p-4 border shadow z-10">
80
80
  Dropdown content
81
81
  </div>
82
82
  </div>
@@ -110,7 +110,7 @@ Here is an example of using `.bottom-start` to position a dropdown below and to
110
110
  <button x-ref="button" @click="open = ! open">Toggle</button>
111
111
  </div>
112
112
 
113
- <div x-show="open" x-anchor.bottom-start="$refs.button" class="bg-white rounded p-4 border shadow">
113
+ <div x-show="open" x-anchor.bottom-start="$refs.button" class="bg-white rounded p-4 border shadow z-10">
114
114
  Dropdown content
115
115
  </div>
116
116
  </div>
@@ -137,7 +137,7 @@ You can add an offset to your anchored element using the `.offset.[px value]` mo
137
137
  <button x-ref="button" @click="open = ! open">Toggle</button>
138
138
  </div>
139
139
 
140
- <div x-show="open" x-anchor.offset.10="$refs.button" class="bg-white rounded p-4 border shadow">
140
+ <div x-show="open" x-anchor.offset.10="$refs.button" class="bg-white rounded p-4 border shadow z-10">
141
141
  Dropdown content
142
142
  </div>
143
143
  </div>
@@ -146,7 +146,7 @@ You can add an offset to your anchored element using the `.offset.[px value]` mo
146
146
  <a name="manual-styling"></a>
147
147
  ## Manual styling
148
148
 
149
- By default, `x-alpine` applies the positioning styles to your element under the hood. If you'd prefer full control over styling, you can pass the `.no-style` modifer and use the `$anchor` magic to access the values inside another Alpine expression.
149
+ By default, `x-anchor` applies the positioning styles to your element under the hood. If you'd prefer full control over styling, you can pass the `.no-style` modifer and use the `$anchor` magic to access the values inside another Alpine expression.
150
150
 
151
151
  Below is an example of bypassing `x-anchor`'s internal styling and instead applying the styles yourself using `x-bind:style`:
152
152
 
@@ -174,7 +174,7 @@ Below is an example of bypassing `x-anchor`'s internal styling and instead apply
174
174
  x-show="open"
175
175
  x-anchor.no-style="$refs.button"
176
176
  x-bind:style="{ position: 'absolute', top: $anchor.y+'px', left: $anchor.x+'px' }"
177
- class="bg-white rounded p-4 border shadow"
177
+ class="bg-white rounded p-4 border shadow z-10"
178
178
  >
179
179
  Dropdown content
180
180
  </div>