Skip to content

Commit a935c14

Browse files
docs(examples): set pointerEvents to "none" on select button
1 parent 64c2574 commit a935c14

File tree

9 files changed

+9
-3
lines changed

9 files changed

+9
-3
lines changed

cypress/test-apps/js/app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ function ProductItem({ hit, insights, components }: ProductItemProps) {
147147
className="aa-ItemActionButton aa-DesktopOnly aa-ActiveOnly"
148148
type="button"
149149
title="Select"
150+
style={{ pointerEvents: 'none' }}
150151
>
151152
<svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor">
152153
<path d="M18.984 6.984h2.016v6h-15.188l3.609 3.609-1.406 1.406-6-6 6-6 1.406 1.406-3.609 3.609h13.172v-4.031z" />

examples/github-repositories-custom-plugin/createGitHubReposPlugin.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export function createGitHubReposPlugin(
130130
className="aa-ItemActionButton aa-DesktopOnly aa-ActiveOnly"
131131
type="button"
132132
title="Select"
133+
style={{ pointerEvents: 'none' }}
133134
>
134135
<svg
135136
viewBox="0 0 24 24"

examples/playground/app.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,7 @@ function ProductItem({ hit, insights, components }: ProductItemProps) {
284284
type="button"
285285
title="Select"
286286
disabled={true}
287-
style={{
288-
pointerEvents: 'none',
289-
}}
287+
style={{ pointerEvents: 'none' }}
290288
>
291289
<svg viewBox="0 0 24 24" fill="currentColor">
292290
<path d="M18.984 6.984h2.016v6h-15.188l3.609 3.609-1.406 1.406-6-6 6-6 1.406 1.406-3.609 3.609h13.172v-4.031z" />

examples/query-suggestions-with-hits/app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ function ProductItem({ hit, insights, components }: ProductItemProps) {
148148
className="aa-ItemActionButton aa-DesktopOnly aa-ActiveOnly"
149149
type="button"
150150
title="Select"
151+
style={{ pointerEvents: 'none' }}
151152
>
152153
<svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor">
153154
<path d="M18.984 6.984h2.016v6h-15.188l3.609 3.609-1.406 1.406-6-6 6-6 1.406 1.406-3.609 3.609h13.172v-4.031z" />

examples/react-renderer/src/Autocomplete.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ export function Autocomplete(
192192
className="aa-ItemActionButton aa-DesktopOnly aa-ActiveOnly"
193193
type="button"
194194
title="Select"
195+
style={{ pointerEvents: 'none' }}
195196
>
196197
<svg fill="currentColor" viewBox="0 0 24 24">
197198
<path d="M18.984 6.984h2.016v6h-15.188l3.609 3.609-1.406 1.406-6-6 6-6 1.406 1.406-3.609 3.609h13.172v-4.031z" />

examples/recently-viewed-items/app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ function AutocompleteProductItem({ hit, components }: ProductItemProps) {
104104
className="aa-ItemActionButton aa-DesktopOnly aa-ActiveOnly"
105105
type="button"
106106
title="Select"
107+
style={{ pointerEvents: 'none' }}
107108
>
108109
<svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor">
109110
<path d="M18.984 6.984h2.016v6h-15.188l3.609 3.609-1.406 1.406-6-6 6-6 1.406 1.406-3.609 3.609h13.172v-4.031z" />

packages/website/docs/sending-algolia-insights-events.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ function ProductItem({ hit, components }) {
9595
className="aa-ItemActionButton aa-DesktopOnly aa-ActiveOnly"
9696
type="button"
9797
title="Select"
98+
style={{ pointerEvents: 'none' }}
9899
>
99100
<svg fill="currentColor" viewBox="0 0 24 24" width="20" height="20">
100101
<path d="M18.984 6.984h2.016v6h-15.188l3.609 3.609-1.406 1.406-6-6 6-6 1.406 1.406-3.609 3.609h13.172v-4.031z"></path>

packages/website/src/components/AutocompleteProduct.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export function AutocompleteProduct({
3939
className="aa-ItemActionButton aa-DesktopOnly aa-ActiveOnly"
4040
type="button"
4141
title="Select"
42+
style={{ pointerEvents: 'none' }}
4243
>
4344
<svg fill="currentColor" viewBox="0 0 24 24" width="20" height="20">
4445
<path d="M18.984 6.984h2.016v6h-15.188l3.609 3.609-1.406 1.406-6-6 6-6 1.406 1.406-3.609 3.609h13.172v-4.031z"></path>

packages/website/src/components/productsPlugin.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ function ProductItem({ hit, components }: ProductItemProps) {
9696
className="aa-ItemActionButton aa-DesktopOnly aa-ActiveOnly"
9797
type="button"
9898
title="Select"
99+
style={{ pointerEvents: 'none' }}
99100
>
100101
<svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor">
101102
<path d="M18.984 6.984h2.016v6h-15.188l3.609 3.609-1.406 1.406-6-6 6-6 1.406 1.406-3.609 3.609h13.172v-4.031z" />

0 commit comments

Comments
 (0)