-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Fixes - Change search bar icons used within button component from `div`s to `span`s (#1857). - Note, any styling that is applied by targeting `div`s or `span`s directly may be impacted by this change. This could result in previously applied styles no longer being applied to these icons, or other styles inadvertently being applied to the icons
- Loading branch information
Showing
8 changed files
with
27 additions
and
22 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div class="Icon Icon--{{iconName}} {{classNames}}" aria-hidden="true"> | ||
<span class="Icon Icon--{{iconName}} {{classNames}}" aria-hidden="true"> | ||
{{icon iconName complexContentsParams}} | ||
</div> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<div class="Icon Icon--{{name}} {{classNames}}" aria-hidden="true"> | ||
<span class="Icon Icon--{{name}} {{classNames}}" aria-hidden="true"> | ||
{{#if iconUrl}} | ||
<img src="{{iconUrl}}" alt="" class="Icon-image"> | ||
{{else}} | ||
{{icon iconName complexContentsParams}} | ||
{{/if}} | ||
</div> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<div class="Icon Icon--{{#if iconName}}{{iconName}}{{else}}custom{{/if}} {{classNames}}" aria-hidden="true"> | ||
<span class="Icon Icon--{{#if iconName}}{{iconName}}{{else}}custom{{/if}} {{classNames}}" aria-hidden="true"> | ||
{{#if iconUrl}} | ||
<img src="{{iconUrl}}" alt="" class="Icon-image"> | ||
{{else}} | ||
{{icon iconName complexContentsParams}} | ||
{{/if}} | ||
</div> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
{{#if showLoadingIndicator}} | ||
{{#if customLoadingIconUrl}} | ||
<div class="yxt-SearchBar-CustomLoadingImage js-yxt-SearchBar-LoadingIndicator js-yxt-SearchBar-Icon yxt-SearchBar-Icon--inactive"> | ||
<span class="yxt-SearchBar-CustomLoadingImage js-yxt-SearchBar-LoadingIndicator js-yxt-SearchBar-Icon yxt-SearchBar-Icon--inactive"> | ||
{{> icons/iconPartial iconUrl=customLoadingIconUrl}} | ||
</div> | ||
</span> | ||
{{else}} | ||
<div class="yxt-SearchBar-AnimatedIcon js-yxt-SearchBar-LoadingIndicator yxt-SearchBar-LoadingIndicator js-yxt-SearchBar-Icon | ||
<span class="yxt-SearchBar-AnimatedIcon js-yxt-SearchBar-LoadingIndicator yxt-SearchBar-LoadingIndicator js-yxt-SearchBar-Icon | ||
yxt-SearchBar-Icon--inactive Icon--lg"> | ||
<svg class= "yxt-SearchBar-LoadingIndicator-AnimatedIcon" viewBox="0 0 72 72"> | ||
<circle class="yxt-SearchBar-LoadingIndicator-Circle" cx="36" cy="36" r="33" stroke="black" stroke-width="3" fill="none"/> | ||
</svg> | ||
</div> | ||
</span> | ||
{{/if}} | ||
{{/if}} | ||
|
||
{{#if submitIcon}} | ||
<div class="yxt-SearchBar-buttonImage js-yxt-SearchBar-buttonImage js-yxt-SearchBar-Icon"> | ||
<span class="yxt-SearchBar-buttonImage js-yxt-SearchBar-buttonImage js-yxt-SearchBar-Icon"> | ||
{{> icons/builtInIcon iconName=submitIcon}} | ||
</div> | ||
</span> | ||
{{else if _config.customIconUrl}} | ||
<div class="yxt-SearchBar-buttonImage js-yxt-SearchBar-buttonImage js-yxt-SearchBar-Icon"> | ||
<span class="yxt-SearchBar-buttonImage js-yxt-SearchBar-buttonImage js-yxt-SearchBar-Icon"> | ||
{{> icons/iconPartial iconUrl=_config.customIconUrl}} | ||
</div> | ||
</span> | ||
{{else}} | ||
<div class="yxt-SearchBar-AnimatedIcon js-yxt-AnimatedForward js-yxt-SearchBar-Icon | ||
<span class="yxt-SearchBar-AnimatedIcon js-yxt-AnimatedForward js-yxt-SearchBar-Icon | ||
{{#unless autoFocus}} yxt-SearchBar-Icon--inactive{{/unless}}"> | ||
{{> icons/builtInIcon | ||
iconName='yext_animated_forward' | ||
classNames='yxt-SearchBar-MagnifyingGlass--static Icon--lg' | ||
complexContentsParams=forwardIconOpts.complexContentsParams | ||
}} | ||
</div> | ||
<div class="yxt-SearchBar-AnimatedIcon js-yxt-AnimatedReverse js-yxt-SearchBar-Icon | ||
</span> | ||
<span class="yxt-SearchBar-AnimatedIcon js-yxt-AnimatedReverse js-yxt-SearchBar-Icon | ||
{{#if autoFocus}} yxt-SearchBar-Icon--inactive{{/if}}"> | ||
{{> icons/builtInIcon | ||
iconName='yext_animated_reverse' | ||
classNames='yxt-SearchBar-Yext--static Icon--lg' | ||
complexContentsParams=forwardIconOpts.complexContentsParams | ||
}} | ||
</div> | ||
</span> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ | |
{{/if}} | ||
</div> | ||
<span class="yxt-SearchBar-voiceSearchText sr-only"></span> | ||
</div> | ||
</div> |