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

feat(kslideout): support optional title slot #1770

Closed
wants to merge 2 commits into from

Conversation

kleinfreund
Copy link
Contributor

@kleinfreund kleinfreund commented Oct 16, 2023

Summary

Adds support for an optional title slot so that additional markup can be used in titles (e.g. a link). The slot takes priority over the prop.

Signed-off-by: Philipp Rudloff philipp.rudloff@konghq.com

Note: Workaround for users of Kongponents v8: Use the before-title slot for both before title and title content and don’t provide props.title.

PR Checklist

  • Conventional Commits all commits follow the conventional commit standards outlined in the main README.
  • Tests coverage: test coverage was added for new features and bug fixes
  • Docs: includes a technically accurate README

@kleinfreund kleinfreund self-assigned this Oct 16, 2023
@netlify
Copy link

netlify bot commented Oct 16, 2023

Deploy Preview for kongponents-sandbox ready!

Name Link
🔨 Latest commit 6c692bf
🔍 Latest deploy log https://app.netlify.com/sites/kongponents-sandbox/deploys/657c50a5f84be50008489f7f
😎 Deploy Preview https://deploy-preview-1770--kongponents-sandbox.netlify.app
📱 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 configuration.

@netlify
Copy link

netlify bot commented Oct 16, 2023

Deploy Preview for kongponents ready!

Name Link
🔨 Latest commit 6c692bf
🔍 Latest deploy log https://app.netlify.com/sites/kongponents/deploys/657c50a5bc3e340008207255
😎 Deploy Preview https://deploy-preview-1770--kongponents.netlify.app
📱 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 configuration.

@kleinfreund kleinfreund marked this pull request as ready for review October 16, 2023 15:05
@kleinfreund kleinfreund requested a review from a team as a code owner October 16, 2023 15:05
@johncowen
Copy link
Contributor

Just a bypasser here, but since I was involved in where this PR came from:

I'm not totally sure if this should be a PR or just an issue, and not that I have much input over here but ideally any title/header type slots shouldn't be wrapped in a p tag. I'd say its highly likely that the end user is going to want to wrap their 'title' in a semantic h* tag.

Just wanted to leave that as a note.

Philipp Rudloff added 2 commits December 15, 2023 14:11
Adds support for an optional `title` slot so that additional markup can be used in titles (e.g. a link). The slot takes priority over the prop.

Signed-off-by: Philipp Rudloff <philipp.rudloff@konghq.com>
Signed-off-by: Philipp Rudloff <philipp.rudloff@konghq.com>
@kleinfreund
Copy link
Contributor Author

Closing this as it was superseded by #2012.

@kleinfreund kleinfreund removed their assignment Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants