File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
packages/rich-text-editor Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class RichTextEditorPopup extends PolylitMixin(LitElement) {
3535 :host([opened]),
3636 :host([opening]),
3737 :host([closing]) {
38- display: contents !important;
38+ display: block !important;
3939 position: fixed;
4040 }
4141
Original file line number Diff line number Diff line change @@ -241,6 +241,14 @@ describe('toolbar controls', () => {
241241 overlay = popup . shadowRoot . querySelector ( 'vaadin-rich-text-editor-popup-overlay' ) ;
242242 } ) ;
243243
244+ it ( `should focus first color button in ${ style } popup when opened` , async ( ) => {
245+ getButton ( style ) . click ( ) ;
246+ await oneEvent ( overlay , 'vaadin-overlay-open' ) ;
247+
248+ const firstButton = popup . querySelector ( 'button' ) ;
249+ expect ( document . activeElement ) . to . equal ( firstButton ) ;
250+ } ) ;
251+
244252 it ( `should apply ${ style } when clicking the "toolbar-button-${ style } " and selecting value` , async ( ) => {
245253 getButton ( style ) . click ( ) ;
246254 await oneEvent ( overlay , 'vaadin-overlay-open' ) ;
You can’t perform that action at this time.
0 commit comments