-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decouple checkbox from FAST foundation
- Loading branch information
1 parent
570f635
commit bb2acad
Showing
3 changed files
with
151 additions
and
14 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
libs/components/src/lib/checkbox/checkbox.form-associated.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { | ||
CheckableFormAssociated, | ||
FoundationElement, | ||
} from '@microsoft/fast-foundation'; | ||
|
||
class _Checkbox extends FoundationElement {} | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
interface _Checkbox extends CheckableFormAssociated {} | ||
|
||
export class FormAssociatedCheckbox extends CheckableFormAssociated(_Checkbox) { | ||
proxy = document.createElement('input'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters