-
Notifications
You must be signed in to change notification settings - Fork 42
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
[aksel.nav.no] Update examples of Page #3349
Conversation
|
@@ -161,6 +161,7 @@ const ComponentExamples = ({ node }: CodeExamplesProps) => { | |||
invisible: unloaded, | |||
}, | |||
)} | |||
style={{ maxHeight: "calc(100vh - 200px)" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to prevent the preview from taking up the entire viewport height.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can do this in className
"max-h-[calc(100vh-200px)]",
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TextWithMarkdownLink now also replaces backtics with code tags. What do you think?
Oh, maybe I should rename it to just TextWithMarkdown now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`TextWithMarkdown´ would be nice 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a good enough example of width=text?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will create some updated example view in a separate PR 🚀
@@ -161,6 +161,7 @@ const ComponentExamples = ({ node }: CodeExamplesProps) => { | |||
invisible: unloaded, | |||
}, | |||
)} | |||
style={{ maxHeight: "calc(100vh - 200px)" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can do this in className
"max-h-[calc(100vh-200px)]",
*/ | ||
const TextWithMarkdownLink = ({ children: input }: { children: string }) => { | ||
const regex = /\[([^\]]+)\]\(([^\s)]+)\)/g; | ||
const regex = /\[([^\]]+)\]\(([^\s)]+)\)|`([^`]+)`/g; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think this might deserve a comment now explaining what part of regex does what.
* 🚧 wip * [Darkside] ErrorSummary updated CSS (#3331) * First run for errorsummary css update * Added nesting * [Darkside] Fileupload CSS update (#3343) * ✨ Updated Dropzone with darkmode * ♻️ Added nesting for root * ♻️ ac -> acx prefix for interla tokens * ♻️ Removed reduntant token * ♻️ More nesting * 💄 Align overlay on drag better * ⚰️ Removed test-code * 💄 Update hover-border for dropzone * 🐛 Removed border-color update on hover in disabled state * ♻️ Use bg input on area, use border default * [Darkside] Link CSS update (#3353) * ✨ Darkmode-support for existing link-component * :refactor: Adjusted line offsets and thickness * [Darkside] ExpansionCard CSS update (#3338) * 💄 Initial css-update expansioncard * 📝 Added sub-headers * 💫 Button animation * ✨ Added data attrb for open-state * 💫 Updated content animation * ♻️ Added nesting * ♻️ Better nesting of rules * ♻️ Use outline for hover border * ♻️ Use border as default outline * 🔥 Remove redundant border css * 🔥 Removed divider transition, unused state attributes in react * [aksel.nav.no] Update examples of Page (#3349) * Changesets: Run yarn as part of create-version * Combobox: Fix issue where using arrow keys in list would make the entire page scroll (#3364) * [Darkside] FormSummary updated CSS (#3345) * :refactor: Use updated CSS for darkside * 💄 Replace accent bg with info bg * [Docs] Use NAV-dekorator for Page examples (#3362) * [aksel.nav.no] Update examples of Page * comment * comment + rename + style->class * fix * 📝 Use NAV-dekorator for Page-examples * 🚚 Moved content to separate __parts location * :refactor: Updated examples * Update aksel.nav.no/website/components/website-modules/examples/__parts/PageDemoContent.tsx Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com> * 🐛 Use correct import syntax for parts * 📝 Add description to page-block default story * 💄 Removed spacing from all typo-headings in demo * 🐛 Removed react import from content part --------- Co-authored-by: Halvor Haugan <halvor.haugan@nav.no> Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com> * Git hooks that notify when yarn.lock have changed (#3361) * 💄 first pass css updates * 🎨 nest CSS * Datepicker: 💄 css layer changes & remove extra border * 🔥 remove resolved todo * 💄 border radius for caption buttons * 🎨 drastically simplify focus outline * change: make button selector less wildcardy * change: outline smaller for rdp-cell buttons * change: width large enough to show 4 characters in year caption * change: match design for range middle selected * change: remove redundant error CSS * change: remove unused CSS * change: un-shuffle css import ordering for date.css * change: remove unused CSS * change: week buttons & day button active * change: use secondary-neutral button for weeknumber buttons * change: same selector for month and day buttons, active state * 🐛 Fixed weeknumber as the button broke old datepicker * change: remove double border on captions, active state on disabled * ♻️ Updated weeknumber to be barkw-compat with old system * 🚚 Moved date-import further up --------- Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com> Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com> Co-authored-by: Halvor Haugan <halvor.haugan@nav.no> Co-authored-by: Ken <ken.aleksander@gmail.com>
No description provided.