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

add @daviddarnes/heading-anchors #41

Merged
merged 2 commits into from
Jul 25, 2024
Merged

add @daviddarnes/heading-anchors #41

merged 2 commits into from
Jul 25, 2024

Conversation

rdela
Copy link
Owner

@rdela rdela commented Jul 25, 2024

At least until #40 finds resolution, building on the work in
#39, adding daviddarnes/heading-anchors per rec in 11ty/eleventy #3363

Used position="beforeend" and styled with a slight adjustment to demo-styling, adding vertical-align: bottom; to a[href^="#"] and constraining styles to heading-anchors element.

At least until [#40](#40) finds
resolution, building on the work in
[#39](#39), adding
[daviddarnes/heading-anchors](https://github.com/daviddarnes/heading-anchors)
per rec in [11ty/eleventy #3363](11ty/eleventy#3363)

Used `position="beforeend"` and styled with a slight adjustment to
[demo-styling], adding `vertical-align: bottom;` to `a[href^="#"]` and
constraining styles to `heading-anchors` element.

demo-styling: https://github.com/daviddarnes/heading-anchors/blob/main/demo-styling.html#L11-L25
Copy link

netlify bot commented Jul 25, 2024

Deploy Preview for eleventeen ready!

Name Link
🔨 Latest commit db2a7dc
🔍 Latest deploy log https://app.netlify.com/sites/eleventeen/deploys/66a29adfb308eb0008176fdc
😎 Deploy Preview https://deploy-preview-41--eleventeen.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

- add hover + focus styles
- 9.2.21-alpha.17
- delete deprecated css
Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@daviddarnes/heading-anchors@2.0.0 None 0 16.1 kB daviddarnes

View full report↗︎

@rdela
Copy link
Owner Author

rdela commented Jul 25, 2024

Having heading-anchors on the base template makes it work on pages as well.

  • add hover + focus styles
  • delete deprecated css
  • 9.2.21-alpha.17

@rdela rdela merged commit 519a08e into trunk Jul 25, 2024
6 checks passed
@rdela rdela deleted the h-a branch July 25, 2024 19:42
rdela added a commit that referenced this pull request Jul 25, 2024
* add @daviddarnes/heading-anchors

At least until #40 finds
resolution, building on the work in #39
adding https://github.com/daviddarnes/heading-anchors per rec in
11ty/eleventy#3363

Used `position="beforeend"` and styled with a slight adjustment to
https://github.com/daviddarnes/heading-anchors/blob/main/demo-styling.html#L11-L25

adding `vertical-align: bottom;` to `a[href^="#"]` and constraining styles to
`heading-anchors` element.

* move heading-anchors code to base.njk instead of post.njk

  - add hover + focus styles for anchor links
  - delete deprecated css
@rdela rdela mentioned this pull request Jul 25, 2024
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.

1 participant