Skip to content

Commit

Permalink
Use button for second Icon wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArinzeJeffrey-droid committed Mar 18, 2024
1 parent 4f436fb commit 8bfafce
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
20 changes: 14 additions & 6 deletions scss/bitstyles/organisms/notification-center/NotificationCenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,30 @@ export default ({ title, subtitle }) => {
const article = document.createElement('article');
const iconWrapperStart = document.createElement('div');
const contentWrapper = document.createElement('div');
const iconWrapperEnd = document.createElement('div');
const iconWrapperEnd = document.createElement('button');
const heading = document.createElement('h2');
const subtitleElement = document.createElement('p');

article.classList.add(
'a-card',
'u-padding-0',
'u-border-radius-s2',
'u-flex'
'u-overflow-visible',
'u-padding-0',
'u-flex',
'u-justify-between'
);

iconWrapperStart.classList.add(
'u-flex-shrink-0',
'u-flex',
'u-border-radius-s2-tl',
'u-border-radius-s2-bl',
'u-items-center',
'u-padding-s2',
'u-bg-brand-2-light-4'
);
iconWrapperStart.innerHTML = `
<svg class="a-icon a-icon--l3" viewBox="0 0 100 100" width="18" height="18" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
<svg class="a-icon a-icon--xl" viewBox="0 0 100 100" width="18" height="18" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
<use xlink:href="${icons}#icon-mail"></use>
</svg>
`;
Expand All @@ -64,14 +68,18 @@ export default ({ title, subtitle }) => {
subtitleElement.textContent = subtitle;

iconWrapperEnd.classList.add(
'u-flex-shrink-0',
'u-flex',
'a-button',
'a-button--transparent',
'u-border-radius-s2-tr',
'u-border-radius-s2-br',
'u-items-center',
'u-padding-s2',
'u-border-radius-0',
'u-bg-grayscale-light-3'
);
iconWrapperEnd.innerHTML = `
<svg class="a-icon a-icon--l3" viewBox="0 0 100 100" width="18" height="18" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
<svg class="a-icon a-icon--xl" viewBox="0 0 100 100" width="18" height="18" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
<use xlink:href="${icons}#icon-mail"></use>
</svg>
`;
Expand Down
1 change: 1 addition & 0 deletions scss/bitstyles/utilities/overflow/_settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ $values: (
'hidden': hidden,
'scroll': scroll,
'auto': auto,
'visible': visible,
),
'overflow-x': (
'auto': auto,
Expand Down

0 comments on commit 8bfafce

Please sign in to comment.