diff options
| author | Zog | 2018-01-22 11:39:34 +0100 |
|---|---|---|
| committer | Zog | 2018-01-25 17:18:01 +0100 |
| commit | 9f4584ef7427575fce4b8294b79f2368b130d8b6 (patch) | |
| tree | 355e20805bd8af1bc832a707401e2005261562b7 /app | |
| parent | ff5d96b530a41669c394b7b0dc138e29da48e97d (diff) | |
| download | chouette-core-9f4584ef7427575fce4b8294b79f2368b130d8b6.tar.bz2 | |
Refs #5586; CR #2
Diffstat (limited to 'app')
| -rw-r--r-- | app/assets/stylesheets/components/_buttons.sass | 4 | ||||
| -rw-r--r-- | app/decorators/line_decorator.rb | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/app/assets/stylesheets/components/_buttons.sass b/app/assets/stylesheets/components/_buttons.sass index a7010ae09..93f9907a5 100644 --- a/app/assets/stylesheets/components/_buttons.sass +++ b/app/assets/stylesheets/components/_buttons.sass @@ -153,8 +153,10 @@ table, .table line-height: $line-height display: block font-size: 14px - &:hover + &:hover, &:focus text-decoration: none + background-color: whitesmoke + outline: none &:not(:first-child) position: relative diff --git a/app/decorators/line_decorator.rb b/app/decorators/line_decorator.rb index 7d247a99c..9171a6310 100644 --- a/app/decorators/line_decorator.rb +++ b/app/decorators/line_decorator.rb @@ -50,7 +50,7 @@ class LineDecorator < AF83::Decorator l.href { h.deactivate_line_referential_line_path(context[:line_referential], object) } l.method :put l.data confirm: h.t('lines.actions.deactivate_confirm') - l.extra_class "delete-action" + l.add_class "delete-action" end instance_decorator.action_link policy: :activate, secondary: :show, footer: :index do |l| @@ -58,14 +58,14 @@ class LineDecorator < AF83::Decorator l.href { h.activate_line_referential_line_path(context[:line_referential], object) } l.method :put l.data confirm: h.t('lines.actions.activate_confirm') - l.extra_class "delete-action" + l.add_class "delete-action" end instance_decorator.destroy_action_link do |l| l.content { h.destroy_link_content('lines.actions.destroy') } l.href { h.line_referential_line_path(context[:line_referential], object) } l.data confirm: h.t('lines.actions.destroy_confirm') - l.extra_class "delete-action" + l.add_class "delete-action" end end end |
