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(rich-text-editor): DLT-2120 toggle editable prop removes input class styles #527

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

emariotti3
Copy link
Contributor

@emariotti3 emariotti3 commented Oct 8, 2024

fix(rich-text-editor): DLT-2120 toggle editable prop removes input class styles

Obligatory GIF (super important!)

Obligatory GIF

🛠️ Type Of Change

These types will increment the version number on release:

  • Fix
  • Feature
  • Performance Improvement
  • Refactor

These types will not increment the version number, but will still deploy to documentation site on release:

  • Documentation
  • Build system
  • CI
  • Style (code style changes, not css changes)
  • Test
  • Other (chore)

📖 Jira Ticket

DLT-2120

📖 Description

Modified updateEditorAttributes method in rich text editor to preserve input class when updated on editable prop toggled.

💡 Context

This fix was needed because it was causing the font to shrink and certain styles to be removed when changing the value of the editable prop (while email was being sent) which looks strange. Linking a video here where I reproduce this issue in the Dialtone docs.

📝 Checklist

For all PRs:

  • I have ensured no private Dialpad links or info are in the code or pull request description (Dialtone is a public repo!).
  • I have reviewed my changes.
  • I have added all relevant documentation.
  • I have considered the performance impact of my change.

For all Vue changes:

  • I have added / updated unit tests.
  • I have made my changes in Vue 2 and Vue 3. Note: you may sync your changes from Vue 2 to Vue 3 (or vice versa) using the ./scripts/dialtone-vue-sync.sh script. Read docs here: Dialtone Vue Sync Script
  • I have validated components with a screen reader.
  • I have validated components keyboard navigation.

📷 Screenshots / GIFs

Recording of issue fixed with changes applied locally.

Copy link

github-actions bot commented Oct 8, 2024

Please add either the visual-test-ready or no-visual-test label to this PR depending on whether you want to run visual tests or not.
It is recommended to run visual tests if your PR changes any UI. ‼️

Copy link

github-actions bot commented Oct 8, 2024

✔️ Deploy previews ready!
😎 Dialtone preview: https://dialtone.dialpad.com/deploy-previews/pr-527/
😎 Dialtone-vue 2 preview: https://dialtone.dialpad.com/vue/deploy-previews/pr-527/
😎 Dialtone-vue 3 the preview: https://dialtone.dialpad.com/vue3/deploy-previews/pr-527/

Copy link
Contributor

@braddialpad braddialpad left a comment

Choose a reason for hiding this comment

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

Makes sense to me, thanks!

@braddialpad braddialpad added the no-visual-test Add this tag when the PR does not need visual testing label Oct 8, 2024
@emariotti3 emariotti3 merged commit 3f31e7a into staging Oct 9, 2024
15 checks passed
@emariotti3 emariotti3 deleted the DLT-2120-editable-prop-overrides-input-class branch October 9, 2024 13:14
juliodialpad pushed a commit that referenced this pull request Oct 9, 2024
## [9.79.1](dialtone/v9.79.0...dialtone/v9.79.1) (2024-10-09)

### Bug Fixes

* DLT-2036 conflicting peer dependencies ([#526](#526)) ([e6b5105](e6b5105))
* **Rich Text Editor:** DLT-2120 toggle editable prop removes input class styles ([#527](#527)) ([3f31e7a](3f31e7a))

### Documentation

* DLT-1797 move SB to docs - Popover to Root Layout ([#521](#521)) ([511b135](511b135))
* DLT-2002 fix remaining modal scrollbar issues ([#519](#519)) ([cd0b1a5](cd0b1a5))
juliodialpad pushed a commit that referenced this pull request Oct 9, 2024
## [2.163.1](dialtone-vue2/v2.163.0...dialtone-vue2/v2.163.1) (2024-10-09)

### Bug Fixes

* **Rich Text Editor:** DLT-2120 toggle editable prop removes input class styles ([#527](#527)) ([3f31e7a](3f31e7a))

### Documentation

* DLT-1797 move SB to docs - Popover to Root Layout ([#521](#521)) ([511b135](511b135))
* DLT-2002 fix remaining modal scrollbar issues ([#519](#519)) ([cd0b1a5](cd0b1a5))
juliodialpad pushed a commit that referenced this pull request Oct 9, 2024
## [3.156.1](dialtone-vue3/v3.156.0...dialtone-vue3/v3.156.1) (2024-10-09)

### Bug Fixes

* **Rich Text Editor:** DLT-2120 toggle editable prop removes input class styles ([#527](#527)) ([3f31e7a](3f31e7a))

### Documentation

* DLT-1797 move SB to docs - Popover to Root Layout ([#521](#521)) ([511b135](511b135))
* DLT-2002 fix remaining modal scrollbar issues ([#519](#519)) ([cd0b1a5](cd0b1a5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-visual-test Add this tag when the PR does not need visual testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants