-
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
Focus indicators consistent #4728
Conversation
This Pull Request targets Consider targeting |
@@ -24,6 +24,18 @@ | |||
font-size: 14px !important; | |||
} | |||
} | |||
|
|||
.bio-vo-text-button { |
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.
Is this about the specific variable outline or a general Carbon customization?
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.
I don't think this is general carbon customization. Nevertheless, we have to see in variable-outline
project.
@@ -21,4 +21,15 @@ | |||
--font-family-monospace: inherit; | |||
background: var(--color-white); | |||
} | |||
|
|||
.bio-properties-panel-input[type="checkbox"]:focus { |
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.
Should this be a general properties panel fix?
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.
The fix is implemented in bpmn-io/properties-panel#390
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.
Good progress, some early comments:
-
I see two versions of the outline (thin, and thick), do we plan to align this?
-
I see two versions of outline styles now for buttons, do we plan to align this?
-
Collapsed properties panel is still part of focusable (tabbable) application; we should
detach
it once collapsed:
Generally I'd suggest we fix the outlines in the relevant libraries, where they are broken, and don't monkey patch in modeler. Applies to properties panel and variable outline.
e18c2a3
to
30bf720
Compare
Improved the tab bar icon focus. The styles are consistent and I think the difference is very minor if you look closely. Do we invest more time to align this more perfectly or is it good to have? cc: @nikku @lmbateman |
8b69b40
to
48a989b
Compare
Improved the tab bar icon focus. The styles are consistent and I think the difference is very minor if you look closely. Do we invest more time to align this more perfectly or is it good to have? |
d925bdb
to
462ad4e
Compare
Summary of the changes:
Figma designs can be found here |
I'm a little confused. Does this mean that
ETA: The second one is great. I think the first one would make it impossible to open the Properties panel with the Tab and Return keys. |
This, "the second one", is what I'd like to see:
|
40d88f3
to
d7ee414
Compare
Currently, the "expand trigger" doesn't support any keyboard event but only mouse event. The control to open and close the panel is supported by its parent element (resizer). <div
className={ classNames('resizer', `resizer-${ direction }`) }
onMouseDown={ onMouseDown }
>
{
isHorizontal(direction)
? <HandleBarX tabIndex="0" className="handlebar" />
: <HandleBarY tabIndex="0" className="handlebar" />
} Even if we modify it to support keyboard events, we would still need to delegate control to the HandleBar. Do you suggest addressing this within the scope of this issue, or do you have an alternative approach in mind? This issue is also arising in switching modeler tabs using Keyboard (since they are divs and requires separate keydown event)
Yes you won't be able to focus the elements within the panel if it's collapsed. |
41c44b5
to
d3a3def
Compare
@abdul99ahad reviewed + merged both upstream PRs:
Please go ahead and incorporate them. |
@@ -1,7 +1,3 @@ | |||
.bjs-powered-by { |
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.
Why this change?
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.
The bpmn.io watermark was removed in this commit. However, this block
forces the watermark to remain visible in the modeler and allows it to gain focus when navigating via keyboard tabbing.
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.
Yea. I assume this is a test plug-in specific override, isn't it? Happy to remove it, just flagging that one of the purposes of this plug-in is to override the core styles, bringing back the logo.
fd9099e
to
281c49a
Compare
In general, this is a huge improvement! Thanks for all your hard work. I turned up a handful of additional issues, including a couple I missed on the first round (sorry). I'm not sure if it makes sense to fix these as part of this issue, or to open another issue. What's the standard practice? Also, I think a couple of these are judgment calls, so I'd be interested in hearing any thoughts from the team.
|
To follow-up on things we found as part of this initiative, or clearly capture them in issues , or agree the are won't fix.
Tab can potentially be moved, it is a selectable thing, and hence I'd keep it focusable.
Agreed.
It is focusing the canvas, cf. bpmn-io/diagram-js#662, but we don't indicate the focus to the user (we should).
What do you expect instead? Return or SPACE does always (unless you are in a form) trigger the link action (or click behavior). Which is to navigate to the thing. What we could do instead:
This is mandated by Carbon, unless I'm mistaken. I'd not invest in working around the Carbon behaviors.
Likely not an easy fix, let's create a clearly reproducible
Only if it is empty, I think, otherwise the canoncal action is to "just press enter" to confirm config and deploy. However I'd not invest there right now. We're planning to rebuild this anyway shortly.
Could you share a recording? I'm not sure I can reproduce it. |
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 works well, and while there is still things to tackle as a potential follow-up I see the current state as worth releasing.
281c49a
to
21853a0
Compare
Agreed; it's a HUGE improvement already and we shouldn't wait to release. |
Proposed Changes
Tab action buttons
Earlier: no focus
Now:
Checkbox
Earlier:
Now:
Buttons
Changes:
Bottom panel tab bar
Earlier: no focus
Changes:
(changes required)
Bottom panel icons
Earlier: no focus
Changes:
Bottom panel focus alignment issue
Earlier:
Changes:
Overlay buttons
Earlier:
Changes:
Footer icons
Earlier: grey background
Changes:
Variable outline tab
Earlier: no focus
Changes:
Closes #4632
Depends on bpmn-io/variable-outline#6
Depends on bpmn-io/properties-panel#390
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}