Visitar URL original
USWDS - update data prop for consistency by ethangardner · Pull Request #6688 · uswds/uswds · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/usa-in-page-navigation/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ const shouldRenderInPageNav = (
const createInPageNav = (el) => {
const inPageNavEl = el;

if (inPageNavEl.dataset.created) return;
if (inPageNavEl.dataset.enhanced) return;

const inPageNavTitleText = Sanitizer.escapeHTML`${
inPageNavEl.dataset.titleText || IN_PAGE_NAV_TITLE_TEXT
Expand Down Expand Up @@ -368,7 +368,7 @@ const createInPageNav = (el) => {
observeSections.observe(tag);
});

inPageNavEl.dataset.created = "true";
inPageNavEl.dataset.enhanced = "true";
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
</svg>
</div>
<div class="margin-4">
<a href="agency.gov" class="usa-tooltip" title="Link to agency.gov" aria-label="Link to agency.gov">Link</a>
<a href="agency.gov" class="usa-tooltip" title="Link to agency.gov">Link</a>
</div>
<div class="margin-4">
<span class="usa-tooltip" title="Span tooltip" aria-label="Span tooltip">Span text</span>
<span class="usa-tooltip" title="Span tooltip">Span text</span>
</div>