-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(navview): use span instead of link to avoid nested links (#97)
- Loading branch information
Showing
5 changed files
with
23 additions
and
22 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
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,13 +1,11 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`NavviewItem by default renders correctly 1`] = ` | ||
<li class="vnt-navview__item"> | ||
<a href="#" class="vnt-navview__item-link"><span class="vnt-icon vnt-navview__item-icon"><!----></span> <span class="vnt-navview__item-label"></span></a> | ||
<li class="vnt-navview__item"><span class="vnt-navview__item-link"><span class="vnt-icon vnt-navview__item-icon"><!----></span> <span class="vnt-navview__item-label"></span></span> | ||
</li> | ||
`; | ||
|
||
exports[`NavviewItem when icon is set renders correctly 1`] = ` | ||
<li class="vnt-navview__item"> | ||
<a href="#" class="vnt-navview__item-link"><span class="vnt-icon vnt-navview__item-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M13.93-8.281q0,.07,0,.141t0,.141q0,.07,0,.141t0,.141l2.023,1.258L14.711-3.469,12.391-4q-.187.2-.391.391l.531,2.32L9.539-.047,8.281-2.07q-.07,0-.141,0T8-2.062q-.07,0-.141,0t-.141,0L6.461-.047,3.469-1.289,4-3.609Q3.8-3.8,3.609-4l-2.32.531L.047-6.461,2.07-7.719q0-.07,0-.141t0-.141q0-.07,0-.141t0-.141L.047-9.539l1.242-2.992L3.609-12q.187-.2.391-.391l-.531-2.32,2.992-1.242L7.719-13.93q.07,0,.141,0t.141,0q.07,0,.141,0t.141,0l1.258-2.023,2.992,1.242L12-12.391q.2.188.391.391l2.32-.531,1.242,2.992Zm-.914,1.016q.016-.187.031-.371t.016-.371q0-.18-.016-.367t-.031-.367l1.844-1.148-.672-1.625-2.117.492a6.788,6.788,0,0,0-.5-.547q-.254-.25-.551-.5l.492-2.117-1.625-.672L8.734-13.016l-.367-.031Q8.18-13.062,8-13.062t-.371.016l-.371.031L6.109-14.859l-1.625.672.492,2.117a6.788,6.788,0,0,0-.547.5q-.25.254-.5.551l-2.117-.492L1.141-9.891,2.984-8.734q-.016.188-.031.371t-.016.371q0,.18.016.367t.031.367L1.141-6.109l.672,1.625L3.93-4.977a6.788,6.788,0,0,0,.5.547q.254.25.551.5L4.484-1.812l1.625.672L7.266-2.984l.367.031q.188.016.367.016t.371-.016l.371-.031L9.891-1.141l1.625-.672L11.023-3.93a6.788,6.788,0,0,0,.547-.5q.25-.254.5-.551l2.117.492.672-1.625ZM8-10.937a2.863,2.863,0,0,1,1.145.23,2.964,2.964,0,0,1,.934.629,2.964,2.964,0,0,1,.629.934A2.863,2.863,0,0,1,10.938-8a2.863,2.863,0,0,1-.23,1.145,2.964,2.964,0,0,1-.629.934,2.964,2.964,0,0,1-.934.629A2.863,2.863,0,0,1,8-5.062a2.863,2.863,0,0,1-1.145-.23,2.964,2.964,0,0,1-.934-.629,2.964,2.964,0,0,1-.629-.934A2.863,2.863,0,0,1,5.063-8a2.863,2.863,0,0,1,.23-1.145,2.964,2.964,0,0,1,.629-.934,2.964,2.964,0,0,1,.934-.629A2.863,2.863,0,0,1,8-10.937Zm0,5a2.027,2.027,0,0,0,.8-.16,2.066,2.066,0,0,0,.656-.441A2.066,2.066,0,0,0,9.9-7.2a2.027,2.027,0,0,0,.16-.8,2.027,2.027,0,0,0-.16-.8,2.066,2.066,0,0,0-.441-.656A2.066,2.066,0,0,0,8.8-9.9a2.027,2.027,0,0,0-.8-.16,2.027,2.027,0,0,0-.8.16,2.066,2.066,0,0,0-.656.441A2.066,2.066,0,0,0,6.1-8.8a2.027,2.027,0,0,0-.16.8,2.027,2.027,0,0,0,.16.8,2.066,2.066,0,0,0,.441.656A2.066,2.066,0,0,0,7.2-6.1,2.027,2.027,0,0,0,8-5.937Z" transform="translate(-0.047 15.953)"></path></svg></span> <span class="vnt-navview__item-label">Settings</span></a> | ||
<li class="vnt-navview__item"><span class="vnt-navview__item-link"><span class="vnt-icon vnt-navview__item-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M13.93-8.281q0,.07,0,.141t0,.141q0,.07,0,.141t0,.141l2.023,1.258L14.711-3.469,12.391-4q-.187.2-.391.391l.531,2.32L9.539-.047,8.281-2.07q-.07,0-.141,0T8-2.062q-.07,0-.141,0t-.141,0L6.461-.047,3.469-1.289,4-3.609Q3.8-3.8,3.609-4l-2.32.531L.047-6.461,2.07-7.719q0-.07,0-.141t0-.141q0-.07,0-.141t0-.141L.047-9.539l1.242-2.992L3.609-12q.187-.2.391-.391l-.531-2.32,2.992-1.242L7.719-13.93q.07,0,.141,0t.141,0q.07,0,.141,0t.141,0l1.258-2.023,2.992,1.242L12-12.391q.2.188.391.391l2.32-.531,1.242,2.992Zm-.914,1.016q.016-.187.031-.371t.016-.371q0-.18-.016-.367t-.031-.367l1.844-1.148-.672-1.625-2.117.492a6.788,6.788,0,0,0-.5-.547q-.254-.25-.551-.5l.492-2.117-1.625-.672L8.734-13.016l-.367-.031Q8.18-13.062,8-13.062t-.371.016l-.371.031L6.109-14.859l-1.625.672.492,2.117a6.788,6.788,0,0,0-.547.5q-.25.254-.5.551l-2.117-.492L1.141-9.891,2.984-8.734q-.016.188-.031.371t-.016.371q0,.18.016.367t.031.367L1.141-6.109l.672,1.625L3.93-4.977a6.788,6.788,0,0,0,.5.547q.254.25.551.5L4.484-1.812l1.625.672L7.266-2.984l.367.031q.188.016.367.016t.371-.016l.371-.031L9.891-1.141l1.625-.672L11.023-3.93a6.788,6.788,0,0,0,.547-.5q.25-.254.5-.551l2.117.492.672-1.625ZM8-10.937a2.863,2.863,0,0,1,1.145.23,2.964,2.964,0,0,1,.934.629,2.964,2.964,0,0,1,.629.934A2.863,2.863,0,0,1,10.938-8a2.863,2.863,0,0,1-.23,1.145,2.964,2.964,0,0,1-.629.934,2.964,2.964,0,0,1-.934.629A2.863,2.863,0,0,1,8-5.062a2.863,2.863,0,0,1-1.145-.23,2.964,2.964,0,0,1-.934-.629,2.964,2.964,0,0,1-.629-.934A2.863,2.863,0,0,1,5.063-8a2.863,2.863,0,0,1,.23-1.145,2.964,2.964,0,0,1,.629-.934,2.964,2.964,0,0,1,.934-.629A2.863,2.863,0,0,1,8-10.937Zm0,5a2.027,2.027,0,0,0,.8-.16,2.066,2.066,0,0,0,.656-.441A2.066,2.066,0,0,0,9.9-7.2a2.027,2.027,0,0,0,.16-.8,2.027,2.027,0,0,0-.16-.8,2.066,2.066,0,0,0-.441-.656A2.066,2.066,0,0,0,8.8-9.9a2.027,2.027,0,0,0-.8-.16,2.027,2.027,0,0,0-.8.16,2.066,2.066,0,0,0-.656.441A2.066,2.066,0,0,0,6.1-8.8a2.027,2.027,0,0,0-.16.8,2.027,2.027,0,0,0,.16.8,2.066,2.066,0,0,0,.441.656A2.066,2.066,0,0,0,7.2-6.1,2.027,2.027,0,0,0,8-5.937Z" transform="translate(-0.047 15.953)"></path></svg></span> <span class="vnt-navview__item-label">Settings</span></span> | ||
</li> | ||
`; |
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
Oops, something went wrong.