Comments (11)
Good idea @castastrophe. I added that to a few already on the typography page. Would it be useful for all headings?
from red-hat-design-system.
Yes please! I would love that. I'm often trying to describe a concept and want to link directly to the topic in documentation.
from red-hat-design-system.
This has been added! It works great for one word headings, but unfortunately is adding %20
between two words. For example, "Component status" becomes ux.redhat.com/accordion#Component%20status
. @castastrophe @wesruv not sure if there's a way to fix that, but at least you can link to it directly!
from red-hat-design-system.
from red-hat-design-system.
We might be able to get a plug-in that adds these anchors for us, or just write one... I can take a look
from red-hat-design-system.
Going to implement this along with the new docs IA work.
from red-hat-design-system.
we can add this easily enough with a plugin, then iterate on the design towards IA impl.
from red-hat-design-system.
@marionnegp Is this a different ask than #422?
from red-hat-design-system.
Not necessarily. I guess this one talks about adding anchor links, while #422 talks about adding the clipboard copy button that makes the anchor links easier to use, but I think these can be combined.
from red-hat-design-system.
These anchor links will use clipboard copy, so we're going to close #422 as a duplicate.
from red-hat-design-system.
There are accessibility concerns here. Cc @nikkimk @hellogreg
See https://www.npmjs.com/package/markdown-it-anchor#permalinks for some options
from red-hat-design-system.
Related Issues (20)
- `rh-card` header slot incorrect font-family
- [bug] CTA on dark theme HOT 2
- [bug] <rh-alert> in dark theme contexts show white text
- [bug] `<rh-card>` body slot does not allow styling headers HOT 6
- [docs] We should document the possible values for the `icon` attribute of Elements, like `<rh-tag>`, etc. HOT 2
- [docs] `<rh-tag>` variants are documented confusingly with `unfilled` vs `outline`
- [bug] `<rh-cta>` focus style HOT 1
- [bug] <rh-alert> excess margin on hidden header
- [fix] `<rh-tag>` — update green border color HOT 1
- [docs] `<rh-accordion>`: add info about accent slot
- [feat] `<rh-health-index>` element
- [bug] `<rh-code-block>` "Show more" action button icon is too large
- [docs] groundwork for version dropdown
- [feat] <rh-site-status>: endpoint attribute to hook the component up to the status.redhat.com API
- [docs]: malformed slot jsdoc HOT 1
- [bug] 'New' `<rh-tag>` stretched on mobile
- [feat] New Figma component for portal navigation HOT 2
- missing `/react` on npm and cdn's like JSPM
- [docs] Add color guidance on using brand red text over gray backgrounds
- [feat] `<rh-announcement>`element HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from red-hat-design-system.