summaryrefslogtreecommitdiffstats
path: root/themes/src
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-05-16 15:53:49 +0300
committerAleksi Hietanen <aleksi@vaadin.com>2017-05-16 15:53:49 +0300
commitda773250ca4b50a2994ef07dbb0b4cf1fa9da4ac (patch)
tree819db6d8d32668efb8e23213b745843e1ded0c08 /themes/src
parentbac4c82d5258202caa3dfde2554e726a26439adc (diff)
downloadvaadin-framework-da773250ca4b50a2994ef07dbb0b4cf1fa9da4ac.tar.gz
vaadin-framework-da773250ca4b50a2994ef07dbb0b4cf1fa9da4ac.zip
Remove unnecessary rowmode prefix from TreeGrid focus styles (#9327)
Diffstat (limited to 'themes/src')
-rw-r--r--themes/src/main/themes/VAADIN/themes/valo/components/_tree8.scss10
-rw-r--r--themes/src/main/themes/VAADIN/themes/valo/components/_treegrid.scss20
2 files changed, 21 insertions, 9 deletions
diff --git a/themes/src/main/themes/VAADIN/themes/valo/components/_tree8.scss b/themes/src/main/themes/VAADIN/themes/valo/components/_tree8.scss
index 6ca4ab3863..8838e7b4e2 100644
--- a/themes/src/main/themes/VAADIN/themes/valo/components/_tree8.scss
+++ b/themes/src/main/themes/VAADIN/themes/valo/components/_tree8.scss
@@ -28,10 +28,6 @@ $v-tree8-border-radius: 3px;
border: none;
}
- .#{$primary-stylename}:focus .#{$primary-stylename}-rowmode-row-focused:before {
- display: none;
- }
-
.#{$primary-stylename}-cell-content {
border: $v-grid-cell-focused-border;
border-color: transparent;
@@ -39,7 +35,11 @@ $v-tree8-border-radius: 3px;
padding: $v-grid-cell-padding;
}
- .#{$primary-stylename}:focus .#{$primary-stylename}-rowmode-cell-focused
+ .#{$primary-stylename}:focus .#{$primary-stylename}-row-focused:before {
+ display: none;
+ }
+
+ .#{$primary-stylename}:focus .#{$primary-stylename}-cell-focused
> .#{$primary-stylename}-node > .#{$primary-stylename}-cell-content {
border: $v-grid-cell-focused-border;
}
diff --git a/themes/src/main/themes/VAADIN/themes/valo/components/_treegrid.scss b/themes/src/main/themes/VAADIN/themes/valo/components/_treegrid.scss
index 9d06e4a3ef..6317c7b125 100644
--- a/themes/src/main/themes/VAADIN/themes/valo/components/_treegrid.scss
+++ b/themes/src/main/themes/VAADIN/themes/valo/components/_treegrid.scss
@@ -67,7 +67,7 @@ $tg-expander-padding: 10px !default;
display: inline-block;
}
- .#{$primary-stylename}-rowmode-row-focused {
+ .#{$primary-stylename}-row-focused {
&:before {
content: "";
@@ -82,14 +82,26 @@ $tg-expander-padding: 10px !default;
}
}
- .#{$primary-stylename}:focus .#{$primary-stylename}-rowmode-row-focused:before {
+ // Needed for hiding the included style
+ .#{$primary-stylename}-cell-focused {
+ position: static;
+
+ &:before {
+ display: none;
+ }
+ }
+
+ .#{$primary-stylename}:focus .#{$primary-stylename}-row-focused:before {
display: block;
}
- .#{$primary-stylename}.v-disabled:focus .#{$primary-stylename}-rowmode-row-focused:before {
- // Disabled Grid should not show cell focus outline
+ .#{$primary-stylename}.v-disabled:focus .#{$primary-stylename}-row-focused:before {
+ // Disabled TreeGrid should not show row focus outline
display: none;
}
+ .#{$primary-stylename}:focus .#{$primary-stylename}-cell-focused:before {
+ display: none;
+ }
}