Skip to content

Commit

Permalink
Change the content and button for Visual Editor exit button
Browse files Browse the repository at this point in the history
Updated based on user feedback to make the button more prominent and easier to understand
  • Loading branch information
minhngocd committed Jun 4, 2024
1 parent 21f85c4 commit 59f58ca
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/views/components/_visual_editor.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@
<div class="js-app-c-visual-editor__inset-text">
<%= render "govuk_publishing_components/components/inset_text", {
} do %>
<p class="govuk-body">Thanks for being part of the beta trial to experiment the visual editor. This is an early version and does not support all content design and formatting needs.</p>
<p class="govuk-body">If you are blocked you can save your work so far and continue with the markdown editor.</p>
<p class="govuk-body">Note that you will not be able switch back to the visual editor only for this document. Visual editor will be available on a new document.</p>
<p class="govuk-body">Continue to edit in markdown if you have to add or format content that is not available.</p>
<p class="govuk-body">Visual Editor can only be used once per document and subsequent editing needs to be done in markdown.</p>
<p class="govuk-body">All changes made in Visual Editor will be saved when you press save and exit to markdown.</p>
<%= render "govuk_publishing_components/components/button", {
text: "Continue in markdown editor",
text: "Continue editing in markdown",
secondary_solid: true,
type: "button",
classes: "js-app-c-visual-editor__exit-button",
destructive: true,
} %>
<% end %>
</div>
Expand Down

0 comments on commit 59f58ca

Please sign in to comment.