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

html_helper #16

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

html_helper #16

wants to merge 5 commits into from

Conversation

BenKandelaars
Copy link
Contributor

I've made a few small badge type placements. Found it clearer to use a configuration based API to create elements

@BenKandelaars BenKandelaars requested a review from ralake September 9, 2021 08:22
README.md Outdated
This repo contains these sets

- @qubit/utils/dom
- @qubit/html
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be @qubit/utils/html?

@@ -154,3 +161,28 @@ Functionality is the same as described in https://developer.mozilla.org/en-US/do
```js
const closestElement = closest(targetElement, selectors)
```

### @qubit/html
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@qubit/html would be a different package right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering if it should be part of utils because it is directly related to html element creation

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right but the name @qubit/html implies a separate package, did you mean @qubit/utils/html?

@alanclarke
Copy link
Contributor

Just wondering what kind of stuff do we want to live here vs stuff that should live in the lib package 🤔

@alanclarke
Copy link
Contributor

alanclarke commented Sep 9, 2021

also, do we want to encourage people to create elements this way vs using jsx?

@BenKandelaars BenKandelaars force-pushed the html_helper branch 6 times, most recently from 6e1d88c to 1f08a37 Compare September 21, 2021 17:10
@BenKandelaars
Copy link
Contributor Author

I've found this useful when doing badging placements that are so small preact feels like overkill

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.

2 participants