-
Notifications
You must be signed in to change notification settings - Fork 488
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: set document title #4377
fix: set document title #4377
Conversation
Closes #4376
This Pull Request targets Consider targeting |
@@ -419,7 +419,6 @@ app.createEditorWindow = function() { | |||
const windowOptions = { | |||
resizable: true, | |||
show: false, | |||
title: 'Camunda Modeler' + getTitleSuffix(app.metadata.version), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we keep the code above, we set the title in two places:
- main process
- HTML
But on MacOS the HTML part takes precedence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Long term, we could consider adding context to the title, e.g. the current tab. But it's outside of the scope of the linked issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, let's decide here and now that we ditch dev
tag, and if we ever add it (again), then we do it inside the app.
Closes #4376
Proposed Changes
This PR replaces the main process code used for the window title with an HTML
<title>
tag. The content is hard-coded as "Camunda Modeler" in contrast to the old solution where we added "(dev)" for dev mode, but this piece of information is already represented in the bottom-right "what's new" button. The main advantage of the current solution is that the a11y tools won't report missing title anymore.Checklist
To ensure you provided everything we need to look at your PR:
@bpmn-io/sr
toolCloses {LINK_TO_ISSUE}
orRelated to {LINK_TO_ISSUE}