Koenig - Wrap HR card in {{koenig-card}} component

refs https://github.com/TryGhost/Ghost/issues/9311
- makes the HR card behave like the other cards wrt hover and selection visibility
This commit is contained in:
Kevin Ansfield 2018-03-14 11:44:09 +00:00
parent 1a673cfe99
commit 355bf18c7c
4 changed files with 12 additions and 4 deletions

View File

@ -9,7 +9,6 @@ const TICK_HEIGHT = 8;
export default Component.extend({
layout,
attributeBindings: ['style'],
classNames: 'mih10', // TODO: move to kgStyle('container-card')?
classNameBindings: ['isSelected:kg-card-selected'],
// attrs

View File

@ -266,7 +266,7 @@ export function kgStyle(params/*, hash*/) {
// Container cards
case 'container-card':
case 'container-card-p':
cssClass = cardBorderStyle + ' tmb--2-0x';
cssClass = cardBorderStyle + ' tmb--2-0x mih10';
break;
// Generic media card

View File

@ -1 +1,10 @@
<hr>
{{#koenig-card
class="kg-card-hover"
isSelected=isSelected
isEditing=isEditing
selectCard=(action selectCard)
editCard=(action editCard)
hasEditMode=false
}}
<hr>
{{/koenig-card}}

View File

@ -1,5 +1,5 @@
{{#koenig-card
class=(concat (kg-style "media-card") " miw-100 tc")
class=(concat (kg-style "media-card") " mih10 miw-100 tc")
isSelected=isSelected
isEditing=isEditing
selectCard=(action selectCard)