Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

html_helper#16

Draft
BenKandelaars wants to merge 5 commits into
masterfrom
html_helper
Draft

html_helper#16
BenKandelaars wants to merge 5 commits into
masterfrom
html_helper

Conversation

@BenKandelaars

Copy link
Copy Markdown
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
Comment thread README.md Outdated
This repo contains these sets

- @qubit/utils/dom
- @qubit/html

Copy link
Copy Markdown
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?

Comment thread README.md
const closestElement = closest(targetElement, selectors)
```

### @qubit/html

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

@alanclarke

alanclarke commented Sep 9, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants