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(code-editor): add disable scroll option for code editor #2258

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

bsahitya
Copy link
Collaborator

Description

Add a property to disable scroll in the code editor. The editor height will be dynamically set based on the content when this property is set to true.

What's included?

  • Add disableScroll boolean property in code-editor web component

Test Steps

  • npm run storybook
  • then set disableScroll to true in code-editor
  • Add content to the editor and verify if the editor height is adjusted.

General Tests for Every PR

  • npm run start still works.
  • npm run lint passes.
  • npm run stylelint passes.
  • npm test passes and code coverage is not lower.
  • npm run build still works.
Screenshots or link to StackBlitz/Plunker

code-editor

Copy link
Collaborator

@owilliams320 owilliams320 left a comment

Choose a reason for hiding this comment

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

looks good 👍🏽

@owilliams320 owilliams320 merged commit e4f7001 into main Oct 14, 2024
7 checks passed
@owilliams320 owilliams320 deleted the fix/code-editor branch October 14, 2024 14:51
@owilliams320
Copy link
Collaborator

🎉 This PR is included in version 8.21.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants