Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added sidebar for molecule #99

Merged
merged 1 commit into from
Oct 25, 2021

Conversation

pallavikadam-srijan
Copy link
Contributor

Created sidebar for a molecule.
Made change on ImageCard.stories.mdx file for update the spelling - Image reveal card instead of Image revel card

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 19, 2021

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 990d60d
Status: ✅  Deploy successful!
Preview URL: https://ddaa2217.design-system.pages.dev

View logs

Copy link
Contributor

@surbhi90 surbhi90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the comments

<div className='grid-x grid-margin-x'>
<div className='cell medium-4'>
<ul className='accordion-navbar' id="accordion">
<span className='accordion-menu hide-for-large'>{label}</span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pallavikadam-srijan We can't have the span directly in ul and it should be wrapped in li

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@surbhi90 Done

<div className='cell medium-4'>
<ul className='accordion-navbar' id="accordion">
<span className='accordion-menu hide-for-large'>{label}</span>
<li className='accordion__item hide-for-small'>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pallavikadam-srijan It should be accordion-navbar__item

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@surbhi90 Done

}

ul.accordion-navbar > li:nth-child(2),
ul.accordion-navbar > li.accordion--active:nth-child(2) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pallavikadam-srijan Don't use tags with classname or id

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@surbhi90 Done

@pallavikadam-srijan pallavikadam-srijan force-pushed the UNDP-72/56-Molecule/Organism-5-sidebar branch from eb4e8e2 to 91d6a9b Compare October 20, 2021 12:21
Copy link
Contributor

@surbhi90 surbhi90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the comments

export function SidebarMenu () {
$(".hide-for-large").click(function() {
$(".accordion-navbar").toggleClass("show");
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pallavikadam-srijan Please use the relevant id in JS

</div>
</div>
);
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pallavikadam-srijan Correct the structure

@pallavikadam-srijan pallavikadam-srijan force-pushed the UNDP-72/56-Molecule/Organism-5-sidebar branch from 91d6a9b to 7ecc073 Compare October 20, 2021 14:24
Copy link
Contributor

@surbhi90 surbhi90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the comments

return (
<div className='grid-x grid-margin-x'>
<div className='cell medium-4 accordion-wrapper'>
<li className='accordion-menu' id='sidebar-menu'><span>{label}</span></li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pallavikadam-srijan can you use li outside of ul and it's class should be accordion__menu as per BEM

}
}

.accordion-wrapper {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pallavikadam-srijan you have also define accordion-wrapper on the top also so can you please put all styling in one place only and please follow the standard like accordion and then using child like &__menu

<li className='accordion-navbar__item'>
<a href="#" className="accordion__heading">{headerText}</a>
<div class="accordion__panel">
{data.map(function (item, index) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pallavikadam-srijan Where we are using sidebar molecule

@pallavikadam-srijan pallavikadam-srijan force-pushed the UNDP-72/56-Molecule/Organism-5-sidebar branch 6 times, most recently from ce50d42 to 497c7d0 Compare October 21, 2021 16:48
Copy link
Contributor

@surbhi90 surbhi90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the comment

return (
<div className='grid-x grid-margin-x'>
<div className='cell medium-4 accordion-wrapper'>
<div className='accordion-navbar__menu' id='sidebar-menu'><span>{label}</span></div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pallavikadam-srijan can we just use the span and not in div

@pallavikadam-srijan pallavikadam-srijan force-pushed the UNDP-72/56-Molecule/Organism-5-sidebar branch 3 times, most recently from 30a1726 to 31784a7 Compare October 25, 2021 08:14
@pallavikadam-srijan pallavikadam-srijan force-pushed the UNDP-72/56-Molecule/Organism-5-sidebar branch from 31784a7 to 990d60d Compare October 25, 2021 08:17
@surbhi90 surbhi90 merged commit 2d9413d into develop Oct 25, 2021
@kuldev kuldev deleted the UNDP-72/56-Molecule/Organism-5-sidebar branch February 25, 2022 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants