neo4j-documentation / docs-ui

Mozilla Public License 2.0
4 stars 23 forks source link

Add role-admin as a label #114

Closed recrwplay closed 2 years ago

recrwplay commented 2 years ago

Adds a label to be used in Neo4j procedures documentation, to mark procedures with @Admin

netlify[bot] commented 2 years ago

Deploy Preview for neo4j-docs-ui ready!

Name Link
Latest commit 34b95a951506d94c52b14f1f78346d5465b9d30e
Latest deploy log https://app.netlify.com/sites/neo4j-docs-ui/deploys/62e26d7f7d910f00085ecd92
Deploy Preview https://deploy-preview-114--neo4j-docs-ui.netlify.app/docs-roles
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

recrwplay commented 2 years ago

from what I can see this will use any text you want as the label, and this PR is just creating the label styling?

Correct. This just applies the text and background colour for any label:role-admin[] usage.

recrwplay commented 2 years ago

Just to clarify, the text can be anything you like - the instance given as an example in this PR is just for illustration.

As it stands, you will need to use the label with label:admin[Admin only] to get the desired output.

If we were to change the css rule to match for label:admin-only[] you could have 'Admin Only' as the default text.