mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-07 08:37:49 +08:00
fix(selection): Thread mulit-selection should appear with focused style in split mode
Fixes T1983 Summary: Give classes handler nomenclature Test Plan: Run tests Reviewers: evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D1653
This commit is contained in:
parent
606fb5839c
commit
fd9e8166ae
4 changed files with 46 additions and 20 deletions
|
@ -1,6 +1,34 @@
|
|||
@import "ui-variables";
|
||||
@import "ui-mixins";
|
||||
|
||||
// MIXINS
|
||||
|
||||
.inverseContent() {
|
||||
// Note: these styles are also applied below
|
||||
// subpixel antialiasing looks awful against dark background colors
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
||||
.participants {
|
||||
color: @text-color-inverse;
|
||||
.unread-true {
|
||||
font-weight: @font-weight-normal;
|
||||
}
|
||||
}
|
||||
.subject {
|
||||
color: @text-color-inverse;
|
||||
font-weight: @font-weight-normal;
|
||||
}
|
||||
.snippet, .timestamp {
|
||||
color: @text-color-inverse-subtle;
|
||||
}
|
||||
|
||||
.thread-icon, .draft-icon {
|
||||
-webkit-filter: brightness(600%) grayscale(100%);
|
||||
}
|
||||
}
|
||||
|
||||
// STYLES
|
||||
|
||||
*:focus, input:focus {
|
||||
outline:none;
|
||||
}
|
||||
|
@ -105,26 +133,7 @@
|
|||
}
|
||||
|
||||
.focused {
|
||||
// subpixel antialiasing looks awful against dark background colors
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
||||
.participants {
|
||||
color: @text-color-inverse;
|
||||
.unread-true {
|
||||
font-weight: @font-weight-normal;
|
||||
}
|
||||
}
|
||||
.subject {
|
||||
color: @text-color-inverse;
|
||||
font-weight: @font-weight-normal;
|
||||
}
|
||||
.snippet, .timestamp {
|
||||
color: @text-color-inverse-subtle;
|
||||
}
|
||||
|
||||
.thread-icon, .draft-icon {
|
||||
-webkit-filter: brightness(600%) grayscale(100%);
|
||||
}
|
||||
.inverseContent;
|
||||
}
|
||||
|
||||
.thread-icon {
|
||||
|
@ -252,3 +261,13 @@
|
|||
margin-left:30px;
|
||||
}
|
||||
}
|
||||
|
||||
.thread-list.handler-split {
|
||||
.list-item {
|
||||
&.selected {
|
||||
background: @list-focused-bg;
|
||||
color: @list-focused-color;
|
||||
.inverseContent;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,6 +7,9 @@ module.exports =
|
|||
class MultiselectListInteractionHandler
|
||||
constructor: (@dataView, @collection) ->
|
||||
|
||||
cssClass: ->
|
||||
'handler-list'
|
||||
|
||||
shouldShowFocus: ->
|
||||
false
|
||||
|
||||
|
|
|
@ -97,6 +97,7 @@ class MultiselectList extends React.Component
|
|||
#
|
||||
className = @props.className
|
||||
className += " ready" if @state.ready
|
||||
className += " " + @state.handler.cssClass()
|
||||
|
||||
@itemPropsProvider ?= (item) =>
|
||||
props = @props.itemPropsProvider(item)
|
||||
|
|
|
@ -7,6 +7,9 @@ module.exports =
|
|||
class MultiselectSplitInteractionHandler
|
||||
constructor: (@dataView, @collection) ->
|
||||
|
||||
cssClass: ->
|
||||
'handler-split'
|
||||
|
||||
shouldShowFocus: ->
|
||||
true
|
||||
|
||||
|
|
Loading…
Reference in a new issue