Open eamanu opened 5 years ago
I think the top nav button for "Community" should be removed.
The top nav buttons for "Python" and "PSF" introduce their own sub nav buttons where as the top bar button for "Community" is just same thing as the sub nav button "Community" found under top nav "Python".
@ewdurbin What do you think? Would this need psf approval? If not I can make a pull request with the change.
If this issue is still available I would love to make it my first contribution. Would this be possible?
@Daniel-Davies Go aheah. @scottilee @ewdurbin any decision about Community nav button?
These menus are configured as part of the django-sitetree module that renders them, so it's not super clear what the code solution would look like.
@Daniel-Davies if you're able to reproduce it locally and give directions on how to resolve it via configuring django-sitetree I can implement the change in Django admin.
Ah I see- I won't be much help in that case, but I suppose after playing around with it and reproducing the issue, it looks like the sitetree item for the community tab (alias "shop-meta") has it's "is_current" property set to false, while mistakenly, the Python tab (alias "python-meta") is_current property is set to true.
I hope that's not too generic.
Could this related to the fact the page is at https://www.python.org/community/ but the button links to https://www.python.org/community-landing/?
(And https://www.python.org/community-landing/ redirects to https://www.python.org/community/)
Also, @pradyunsg wrote in https://github.com/python/pythondotorg/issues/1894:
It seems like we're missing two things:
The CSS selector for
.community
in https://github.com/python/pythondotorg/blob/7556542b58d9c90717757c9fa997637752d6dd85/static/sass/style.scss#L380-L390Whatever the site CMS information is to get the
jobs
class on body, in the staging environment.
I think shop here is community, just named weird. In Django admin, it is set that way and is seen in the fixture data https://github.com/python/pythondotorg/blob/cbc6c143922933a082ad600207ddb75703757fe3/fixtures/sitetree_menus.json#L140
@hugovk I dont see this locally, fwiw
Could this related to the fact the page is at python.org/community but the button links to python.org/community-landing?
Describe the bug When click on Community button on the top menu the arrow select Python section
To Reproduce Steps to reproduce the behavior:
Expected behavior Arrow select Community
Screenshots
Desktop (please complete the following information):