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

fix(Button): support target property #1817

Merged
merged 2 commits into from
Dec 15, 2022
Merged

Conversation

langz
Copy link
Contributor

@langz langz commented Dec 15, 2022

This PR is adding documentation and "TypeScript support" for the target property.

Here's an example of when consumers using TypeScript, tries to use the Button component with the target property as of today(pre this PR):

image

@langz langz requested a review from tujoworker December 15, 2022 09:04
@langz
Copy link
Contributor Author

langz commented Dec 15, 2022

Was it so that I need to generate/add this change to packages/dnb-eufemia/src/components/button/Button.d.ts as part of this PR as well, or will the "build server" automagically take care of this? I can't remember 😊

@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 15, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 980a48c:

Sandbox Source
eufemia-starter Configuration

@langz langz force-pushed the fix/button-should-support-target-prop branch from ff4024e to 42c89c6 Compare December 15, 2022 09:13
@gatsby-cloud
Copy link

gatsby-cloud bot commented Dec 15, 2022

✅ DNB Eufemia Portal deploy preview ready

Copy link
Member

@tujoworker tujoworker left a comment

Choose a reason for hiding this comment

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

Nice. We need soon to rewrite it to TypeScript 😉

As of now, there is a type definition file for the button. So it will not "overwrite" it actually with the "new" docs.
I pushed a commit with it, so should be fine.

@langz langz merged commit 71f5ee3 into main Dec 15, 2022
@langz langz deleted the fix/button-should-support-target-prop branch December 15, 2022 11:05
tujoworker pushed a commit that referenced this pull request Dec 19, 2022
# [9.43.0](v9.42.0...v9.43.0) (2022-12-19)

### Bug Fixes

* **Button:** support target property ([#1817](#1817)) ([71f5ee3](71f5ee3))
* **TableContainer:** align always visible scrollbar ([#1819](#1819)) ([c16519d](c16519d))
* **TableContainer:** no space on empty foot + clip scrollbar ([#1827](#1827)) ([04dd93b](04dd93b))
* **Table:** prevent expanded row to not change column width ([#1816](#1816)) ([bbf94a8](bbf94a8))
* **useHandleSortState:** change default direction from asc to off ([#1826](#1826)) ([c7e4d6f](c7e4d6f))
* **useHandleSortState:** fix import issue ([#1823](#1823)) ([c595ff1](c595ff1))

### Features

* **Scrollbar:** add new look to scrollbars ([#1815](#1815)) ([a590b50](a590b50))
@tujoworker
Copy link
Member

🎉 This PR is included in version 9.43.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

joakbjerk pushed a commit that referenced this pull request Mar 27, 2023
* fix(Button): support target property

* Add target to the type definition file

Co-authored-by: Tobias Høegh <tobias@tujo.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants