-
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 - Address and resolve vulnerabilities (#1855) - Change search bar icons used within button component from divs to spans (#1857)
- Loading branch information
Showing
12 changed files
with
109 additions
and
53 deletions.
There are no files selected for viewing
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
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
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> |
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