Skip to content

Commit

Permalink
renamed icons to match lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
rrusher committed May 22, 2024
1 parent 4c6b868 commit 4b35761
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions blocks/economic-data/economic-data.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.economic-data .accordion .accordion-header::after {
border-color: var(--body-color) transparent transparent transparent;
border-style: solid;
border-width: 6px 5px 0 5px;
border-width: 6px 5px 0;
content: '';
margin-top: -5px;
position: absolute;
Expand Down Expand Up @@ -121,7 +121,7 @@
margin-left: 5px;
}

.economic-data .tooltip .icon-info_circle_dark {
.economic-data .tooltip .icon-info-circle-dark {
display: none;
}

Expand All @@ -143,11 +143,11 @@
line-height: var(--line-height-s);
}

.economic-data .tooltip:hover .icon-info_circle {
.economic-data .tooltip:hover .icon-info-circle {
display: none;
}

.economic-data .tooltip:hover .icon-info_circle_dark {
.economic-data .tooltip:hover .icon-info-circle-dark {
display: block;
}

Expand Down
4 changes: 2 additions & 2 deletions blocks/economic-data/economic-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ function generateDataTable(block, title, socioEconData) {
// Create the accordion structure
const accordion = div({ class: 'accordion' },
div({ class: 'accordion-header', onclick: (e) => toggleAccordion(e) }, getHeaderLabels(title), div({ class: 'tooltip' },
span({ class: 'icon icon-info_circle' }),
span({ class: 'icon icon-info_circle_dark' }),
span({ class: 'icon icon-info-circle' }),
span({ class: 'icon icon-info-circle-dark' }),
span({ class: 'tooltiptext' }, `${socioEconData.citation}`),
),
),
Expand Down
2 changes: 1 addition & 1 deletion blocks/info-mouseover/info-mouseover.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default async function decorate(block) {
const heading = block.closest('.section').querySelector('h1,h2,h3,h4,h5,h6');

const icon = document.createElement('span');
icon.classList.add('icon', 'icon-info_circle');
icon.classList.add('icon', 'icon-info-circle');

positionIcon(heading, icon);
block.append(icon);
Expand Down
2 changes: 1 addition & 1 deletion blocks/profile/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function showNotification(type, iconHtml, message, message2) {
}

function showError(err) {
showNotification('error', '<img src="/icons/info_circle.svg" aria-hidden="true" alt="Error" class="info-circle">', i18n('There was a problem processing your request.'), i18n(err));
showNotification('error', '<img src="/icons/info-circle.svg" aria-hidden="true" alt="Error" class="info-circle">', i18n('There was a problem processing your request.'), i18n(err));
}

function showSuccess(message) {
Expand Down
File renamed without changes
File renamed without changes

0 comments on commit 4b35761

Please sign in to comment.