-
Notifications
You must be signed in to change notification settings - Fork 27
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
Make all dropdown items of the Community option in the collapsed content visible on small-screen #63
Conversation
https://deploy-preview-63--jenkins-io-components.netlify.app/?path=/story/example-navbar--searchbox-enabled does changing the order of things make any difference to the ui? Can you update the PR description and text about why you are making the change |
it may be worth changing the popup to be a popper.js or the bootstrap 5 thing that @zbynek was setting up. |
I wanted to work on the issue jenkins-infra/jenkins.io#6056 so felt by changing the order the community option would place it higher thus enabling all its dropdown menu items to be displayed on small screen. If this assumption of mine was wrong, I shall do as you have suggested. |
Please may I know what is @zbynek setting up related to bootstrap 5 |
it should be pretty web component friendly, I am not familiar with what the original issue was though, been busy fighting fires at work |
Thanks for the reply. I shall make the required changes. |
I have made changes in css . @halkeye please do let me know if it is fine or are any more changes required. |
https://jenkins-io-components.netlify.app/?path=/story/example-navbar--mobile-search-box can you explain what the change does? do you have a screenshot before and after at all? |
lint is failing, though for some reason ci.jenkins.io isn't running it
|
Are there any more improvements to be made in order for this PR to be merged? Kindly let me know |
I took a look a the preview and the new change to the mobile version of the navbar looks at least okay. Could be better if we can make the search modal disappear if we click on anywhere outside the modal, though I understand that may not be an easy task. |
That isn't behavior that is exposed via https://docsearch.algolia.com/docs/docsearch-v3/ |
Sure @halkeye Let me raise an issue with them. |
Done: algolia/docsearch#1810 |
4027958
to
2606e4e
Compare
Hey there and thank you for opening this pull request! 👋🏼 We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted. Details:
|
@halkeye |
I can't speak to antora as one never used it. The storybook covers how to use things. https://jenkins-io-components.netlify.app/?path=/docs/example-introduction--docs |
Hi @lakshmishreea122003! Speaking as one of the potential project mentors, I think we may consider using the Antora header and footer but to render these by tweaking the CSS in such a way so as to imitate the existing components moving forward. But we may also make the Antora header and footer invisible but to add to the Antora-built site in a hacky way the existing header and footer. |
Thanks for the suggestions. |
also don't commit to using a solution that won't match needs. If you find out it can't add our standard header and footer, then probably look at a different set of tooling. but thats way off topic |
I'll keep the instructions in mind, thank you so much. |
In order to collapse some of the navigation links into their larger subject as advised by @kmartens27 in jenkins-infra/jenkins.io#6046 I did try to find ways to do it but was unable to figure out the apt method. Can you please give me a clue as to how I could go about to get what is desired. |
Maybe take a look at the code @ https://github.com/matteocusinato/q-menu/tree/master |
@lakshmishreea122003 I am going to check out this pull request to see if I could use some simple HTML/CSS/JavaScript to achieve the desired effect on my side now. Will get back to you soon! |
Hi @lakshmishreea122003 I have experimented with enabling the "expansion" of the dropdown menu on hover, and had some success. Essentially the normal view when the cursor is away from the menu is: While the on hover view is: My code changes is based on your pull request and can be viewed at https://github.com/krisstern/jenkins-io-components/tree/collapsed-content-changes. It looks like if you would like to carry out the changes @kmartens27 has suggested it is indeed possible, but it would not be trivial. |
If the collapsing/nesting is more difficult, please don't feel like you must go that route. I hadn't realized how intricate it may be until @krisstern shared his findings. |
Thanks for all your guidance. I shall continue to improve this PR to get the desired result. |
@lakshmishreea122003 @krisstern You can tweak the default ui of antora, by modify the hbs files, and load the components via cdn, or downloading them as dependencies using the header file to use the component and head-script to load the components via cdn same thing goes with footer as already the components is loaded this is done here |
Hi @Mahmoudgalalz Have you checked if @lakshmishreea122003 is still working on this pull request first before proceeding any further? Also for the context, we are not yet using Antora. |
Hi @krisstern, It's still open, so I thought if she still working on it, and also it's not related to the topic but she was asking so I give her info, so I was trying to help |
@Mahmoudgalalz Can to tell the difference between an issue and a pull request? This is a pull request, not an issue. For an open issue with no pull request referenced if it is open you can probably work on it. But for a pull request it means someone has already worked on the issue. |
Yeah I know, I have seen the issue and headed to its PR, to check if there's anything that might be wrong, to suggest so I know the difference between PR and issue I'm not trying to spam or do wrong things I was trying to be helpful 😇 |
If you already know you should refrain from doing so. But in effect you do seem to be spamming more than trying to be helpful. See this pull request has already been closed just a few moments ago maybe the right response is instead of arguing with me open a new pull request to follow up? |
I came up with this PR in my attempt to fix the issue jenkins-infra/jenkins.io#6056