From 0fd59e941bb8ed0418cbb75a05c507aaeba09e47 Mon Sep 17 00:00:00 2001 From: Anna Koskinen Date: Tue, 28 Nov 2017 13:34:00 +0200 Subject: Fix styling of Window control buttons to show focus (#10285) Fixes #8918 --- .../themes/valo/WindowControlButtonFocus.java | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 uitest/src/main/java/com/vaadin/tests/themes/valo/WindowControlButtonFocus.java (limited to 'uitest/src/main/java/com') diff --git a/uitest/src/main/java/com/vaadin/tests/themes/valo/WindowControlButtonFocus.java b/uitest/src/main/java/com/vaadin/tests/themes/valo/WindowControlButtonFocus.java new file mode 100644 index 0000000000..ce30991be1 --- /dev/null +++ b/uitest/src/main/java/com/vaadin/tests/themes/valo/WindowControlButtonFocus.java @@ -0,0 +1,25 @@ +package com.vaadin.tests.themes.valo; + +import com.vaadin.server.VaadinRequest; +import com.vaadin.tests.components.AbstractTestUI; +import com.vaadin.ui.Label; +import com.vaadin.ui.Window; + +public class WindowControlButtonFocus extends AbstractTestUI { + @Override + protected void setup(VaadinRequest request) { + Window window = new Window("Window", new Label()); + window.center(); + addWindow(window); + } + + @Override + protected Integer getTicketNumber() { + return 8918; + } + + @Override + protected String getTestDescription() { + return "Window control buttons should have noticeable focus styles."; + } +} -- cgit v1.2.3