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(dynamic-form): change example from textarea to code-editor #3199

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

paulinewahle
Copy link
Contributor

fix: #1859

Review:

  • Commits are atomic
  • Commits have the correct type for the changes made
  • Commits with breaking changes are marked as such

Browsers tested:

(Check any that applies, it's ok to leave boxes unchecked if testing something didn't seem relevant.)

Windows:

  • Chrome
  • Edge
  • Firefox

Linux:

  • Chrome
  • Firefox

macOS:

  • Chrome
  • Firefox
  • Safari

Mobile:

  • Chrome on Android
  • iOS

Copy link

Documentation has been published to https://lundalogik.github.io/lime-elements/versions/PR-3199/

@paulinewahle paulinewahle self-assigned this Sep 24, 2024
fold={true}
onChange={this.handleTextChange}
value={this.text}
></limel-code-editor>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
></limel-code-editor>,
/>,

Just a style/taste. But the code looks cleaner and we normally do that when elements don't wrap anything else.

@@ -45,7 +45,14 @@ export class DynamicFormExample {

public render() {
return [
<textarea onChange={this.handleTextChange}>{this.text}</textarea>,
Copy link
Contributor

Choose a reason for hiding this comment

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

in the previous version, one could typ inside the textarea and see the results live in the form below. We should make sure that the same thing happens when using the code-editor

Copy link
Contributor

Choose a reason for hiding this comment

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

the commit type is docs in this case, not fix. Since we are only changing something in the documentations, and not fixing any bugs or problems in the component's code

Copy link
Contributor

Choose a reason for hiding this comment

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

let me know if you want help changing the title 😊

@@ -1,4 +1,3 @@
textarea {
limel-code-editor {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
limel-code-editor {
limel-code-editor {

@paulinewahle paulinewahle force-pushed the dynamic-schema-code-editor branch 2 times, most recently from ee36236 to 33be529 Compare September 24, 2024 12:11
@paulinewahle paulinewahle force-pushed the dynamic-schema-code-editor branch from 33be529 to 1b6d8f8 Compare September 24, 2024 12:14
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.

DOCS: use limel-code-editor instead of textarea in form example
2 participants