-
Notifications
You must be signed in to change notification settings - Fork 11
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
Allow alt text annotations to be deleted #45
base: main
Are you sure you want to change the base?
Allow alt text annotations to be deleted #45
Conversation
src/data/routes-native.json
Outdated
@@ -28,7 +28,7 @@ | |||
"label": "Alternative text", | |||
"designerCheck": "Alternative text", | |||
"path": "alt-text", | |||
"shouldHide": true, | |||
"shouldHide": false, | |||
"percent": 20 |
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.
@gert-janvercauteren what was the reason for this change? it's breaking the native flow for me
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.
This was not on purpose!
@@ -292,6 +293,7 @@ export const add = (msg) => { | |||
// update with id (for future scanning) | |||
altTextFrame.name = `${altTextLayerName} | ${altTextFrame.id}`; | |||
altTextFrame.expanded = false; | |||
altTextFrame.locked = true; |
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.
@gert-janvercauteren nice add!
src/ui.js
Outdated
|
||
// should hide flag is true and step data exists | ||
if (shouldHide === true && stepsDataKeysArray.includes(key)) { | ||
// if not current path, hide layer + force hide override | ||
if (currentPath !== path || forceHide === true) { |
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.
@gert-janvercauteren all of this still needs to be there, this hides the annotation layer so that when users add images manually, they don't accidentally select the annotation layer(s) when trying to select layers from the design file
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.
With the locked alt text layer, you won't be able to select it.
I'll revert, as this is not the main aim for the changes :D
Description
n/a
and input field so the text is visually alignedChecklist: