Skip to content

Commit

Permalink
Voice Search support (#894)
Browse files Browse the repository at this point in the history
Add support for voice search

This includes updating the styling of the icons and adding the default config

J=SLAP-1444
TEST=manual

Point the test site to the SDK with voice search and see the icon appear and work correctly. Test adding custom icons and confirm the styling looks good
  • Loading branch information
cea2aj authored Aug 2, 2021
1 parent 31a5c36 commit 48094d7
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 1 deletion.
5 changes: 5 additions & 0 deletions templates/universal-standard/page-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
"loadingIndicator": {
"display": true //Optional, whether to include a loading indicator on seachbar
// "iconUrl": "" //Optional, use custom icon url instead of the default loading indicator animation
},
"voiceSearch": {
"enabled": false // Whether or not voice search is enabled
// "customMicIconUrl": "", // Path to override the voice start icon
// "customListeningIconUrl": "" // Path to override the voice stop icon
}
}
},
Expand Down
5 changes: 5 additions & 0 deletions templates/vertical-full-page-map/page-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
"loadingIndicator": {
"display": true //Optional, whether to include a loading indicator on seachbar
// "iconUrl": "" //Optional, use custom icon url instead of the default loading indicator animation
},
"voiceSearch": {
"enabled": false // Whether or not voice search is enabled
// "customMicIconUrl": "", // Path to override the voice start icon
// "customListeningIconUrl": "" // Path to override the voice stop icon
}
},
"Pagination": {
Expand Down
5 changes: 5 additions & 0 deletions templates/vertical-grid/page-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
"loadingIndicator": {
"display": true //Optional, whether to include a loading indicator on seachbar
// "iconUrl": "" //Optional, use custom icon url instead of the default loading indicator animation
},
"voiceSearch": {
"enabled": false // Whether or not voice search is enabled
// "customMicIconUrl": "", // Path to override the voice start icon
// "customListeningIconUrl": "" // Path to override the voice stop icon
}
},
"Pagination": {
Expand Down
5 changes: 5 additions & 0 deletions templates/vertical-map/page-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
"loadingIndicator": {
"display": true //Optional, whether to include a loading indicator on seachbar
// "iconUrl": "" //Optional, use custom icon url instead of the default loading indicator animation
},
"voiceSearch": {
"enabled": false // Whether or not voice search is enabled
// "customMicIconUrl": "", // Path to override the voice start icon
// "customListeningIconUrl": "" // Path to override the voice stop icon
}
},
"Pagination": {
Expand Down
5 changes: 5 additions & 0 deletions templates/vertical-standard/page-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
"loadingIndicator": {
"display": true //Optional, whether to include a loading indicator on seachbar
// "iconUrl": "" //Optional, use custom icon url instead of the default loading indicator animation
},
"voiceSearch": {
"enabled": false // Whether or not voice search is enabled
// "customMicIconUrl": "", // Path to override the voice start icon
// "customListeningIconUrl": "" // Path to override the voice stop icon
}
},
"Pagination": {
Expand Down
7 changes: 6 additions & 1 deletion test-site/config/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@
}
},
"SearchBar": {
"placeholderText": "Search" // The placeholder text in the answers search bar
"placeholderText": "Search", // The placeholder text in the answers search bar
"voiceSearch": {
"enabled": false
// "customMicIconUrl": "", // Optional, display a custom microphone icon
// "customListeningIconUrl": "" // Optional, displays a custom while voice search is active
}
}
},
"verticalsToConfig": {
Expand Down

0 comments on commit 48094d7

Please sign in to comment.