Skip to content

Commit e43c450

Browse files
authored
Merge pull request #3418 from aleatham/xlink-deprecated
Added href attribute to <use> tags with deprecated xlinkHref attribute.
2 parents 8bf0f42 + 08bb9fb commit e43c450

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/core/components/auth/authorization-popup.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default class AuthorizationPopup extends React.Component {
2323
<h3>Available authorizations</h3>
2424
<button type="button" className="close-modal" onClick={ this.close }>
2525
<svg width="20" height="20">
26-
<use xlinkHref="#close" />
26+
<use href="#close" xlinkHref="#close" />
2727
</svg>
2828
</button>
2929
</div>

src/core/components/auth/authorize-btn.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class AuthorizeBtn extends React.Component {
2525
<button className={isAuthorized ? "btn authorize locked" : "btn authorize unlocked"} onClick={ this.onClick }>
2626
<span>Authorize</span>
2727
<svg width="20" height="20">
28-
<use xlinkHref={ isAuthorized ? "#locked" : "#unlocked" } />
28+
<use href={ isAuthorized ? "#locked" : "#unlocked" } xlinkHref={ isAuthorized ? "#locked" : "#unlocked" } />
2929
</svg>
3030
</button>
3131
{ showPopup && <AuthorizationPopup /> }

src/core/components/auth/authorize-operation-btn.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default class AuthorizeOperationBtn extends React.Component {
2424
return (
2525
<button className={isAuthorized ? "authorization__btn locked" : "authorization__btn unlocked"} onClick={ this.onClick }>
2626
<svg width="20" height="20">
27-
<use xlinkHref={ isAuthorized ? "#locked" : "#unlocked" } />
27+
<use href={ isAuthorized ? "#locked" : "#unlocked" } xlinkHref={ isAuthorized ? "#locked" : "#unlocked" } />
2828
</svg>
2929
</button>
3030

src/core/components/models.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default class Models extends Component {
2424
return <section className={ showModels ? "models is-open" : "models"}>
2525
<h4 onClick={() => layoutActions.show("models", !showModels)}>
2626
<span>Models</span>
27-
<svg className="arrow" width="20" height="20">
27+
<svg width="20" height="20">
2828
<use xlinkHref={showModels ? "#large-arrow-down" : "#large-arrow"} />
2929
</svg>
3030
</h4>

src/core/components/operations.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default class Operations extends React.Component {
109109

110110
<button className="expand-operation" title="Expand operation" onClick={() => layoutActions.show(isShownKey, !showTag)}>
111111
<svg className="arrow" width="20" height="20">
112-
<use xlinkHref={showTag ? "#large-arrow-down" : "#large-arrow"} />
112+
<use href={showTag ? "#large-arrow-down" : "#large-arrow"} xlinkHref={showTag ? "#large-arrow-down" : "#large-arrow"} />
113113
</svg>
114114
</button>
115115
</h4>

0 commit comments

Comments
 (0)