Opened 10 years ago
Last modified 12 months ago
#1077 assigned defect (bug)
Fix anchors in the bbPress & BuddyPress Codex theme so that anchors are not behind the toolbar
Reported by: | netweb | Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Component: | buddypress.org | Keywords: | needs-patch |
Cc: |
Description
We should fix anchors in the Codex theme so that going to
foo#bar
putsbar
at the top of the visible screen, rather than behind the toolbar
There's 3 suggested fixes for this mentioned in #BuddyPress on Slack:
https://wordpress.slack.com/archives/buddypress/p1433336799000531
Attachments (2)
Change History (19)
This ticket was mentioned in Slack in #buddypress by netweb. View the logs.
10 years ago
#3
follow-up:
↓ 5
@
7 years ago
- Keywords needs-patch removed
Ended up using the solution from https://www.itsupportguides.com/knowledge-base/tech-tips-tricks/how-to-offset-anchor-tag-link-using-css/ which seems to work pretty well.
I applied it globally to the bb-base theme rather than just the codex, as the only pages which don't use the overlayed header I could find didn't seem negatively affected by it being global.
#5
in reply to:
↑ 3
@
7 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Replying to dd32:
I applied it globally to the bb-base theme rather than just the codex, as the only pages which don't use the overlayed header I could find didn't seem negatively affected by it being global.
It does affect the forums in an unexpected way:
- Go to https://ru.wordpress.org/support/topic/помогите-найти-строку/#post-271548
- Try to select the text of the previous (one-line) post for quoting.
- The post cannot be selected, as it's covered by an invisible
:target:before
element.
Can we make that selector more specific, or the wporg-support
theme should override it?
#6
@
7 years ago
This also causes an issue with creating bbPress and BuddyPress Trac tickets, as reported by @netweb:
Steps to reproduce:
- Attempt to create a new ticket via
- Add
Test
to both the Summary and Description fields- Click
Preview
Now if you try to click
Preview
again, orCreate Ticket
nothing happens.
See 1077.2.png.
This ticket was mentioned in Slack in #meta-tracdev by sergey. View the logs.
7 years ago
This ticket was mentioned in Slack in #buddypress by djpaul. View the logs.
7 years ago
#16
@
5 years ago
Does it make sense to just address it for the toc-heading
for now? We already have a target declaration we can tie into.
/* Highlight current heading and adjust scroll position for fixed toolbar */ .toc-heading:target { border-left: 5px solid #0073aa; padding-left: 0.278rem; margin-left: -0.556rem; }
In 6370: