style: replace legacy delete icon
This commit is contained in:
parent
adfeac02e7
commit
ef8dc97a4c
9 changed files with 5 additions and 17 deletions
|
@ -1 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" fill-rule="evenodd"><path d="M6 18.857C6 20.037 6.749 21 7.667 21h8.666C17.25 21 18 20.037 18 18.857V6H6v12.857zM4 6h16M9 11v5m3-5v5m3-5v5M8.5 4.889c0-.858.696-1.89 1.556-1.89h3.888c.86 0 1.556 1.032 1.556 1.89" stroke="#000091" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M0 0h24v24H0z"/></g></svg>
|
Before Width: | Height: | Size: 427 B |
|
@ -31,12 +31,6 @@ form.form > .conditionnel {
|
|||
|
||||
.delete-column {
|
||||
width: 50px;
|
||||
|
||||
button {
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -158,10 +158,6 @@
|
|||
background-image: image-url("icons/meh-regular.svg");
|
||||
}
|
||||
|
||||
&.delete {
|
||||
background-image: image-url("icons/trash.svg");
|
||||
}
|
||||
|
||||
&.mandatory {
|
||||
width: 10px;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ class ApplicationComponent < ViewComponent::Base
|
|||
include ViewComponent::Translatable
|
||||
include FlipperHelper
|
||||
|
||||
delegate :rich_text_area_tag, to: :helpers
|
||||
delegate :rich_text_area_tag, :dsfr_icon, to: :helpers
|
||||
|
||||
def current_user
|
||||
controller.current_user
|
||||
|
|
|
@ -176,7 +176,8 @@ class Conditions::ConditionsComponent < ApplicationComponent
|
|||
|
||||
def delete_condition_tag(row_index)
|
||||
tag.button(
|
||||
tag.span('', class: 'icon delete') + tag.span(t('.remove_a_row'), class: 'sr-only'),
|
||||
class: "fr-btn fr-btn--sm fr-btn--tertiary fr-icon-delete-line",
|
||||
title: t('.remove_a_row'),
|
||||
formaction: delete_condition_path(row_index),
|
||||
formmethod: 'delete',
|
||||
formnovalidate: true
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
.message-extras.flex.justify-start
|
||||
- if commentaire.soft_deletable?(connected_user)
|
||||
= button_to instructeur_commentaire_path(commentaire.dossier.procedure, commentaire.dossier, commentaire), method: :delete, class: 'button danger', form: { data: { turbo: true, turbo_confirm: t('.confirm') } } do
|
||||
%span.icon.delete
|
||||
= dsfr_icon('fr-icon-delete-line', :sm)
|
||||
= t('.delete_button')
|
||||
|
||||
- if commentaire.piece_jointe.attached?
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
- else
|
||||
.flex.justify-start.delete
|
||||
= button_to type_de_champ_path, class: 'fr-btn fr-btn--sm fr-btn--secondary fr-icon-delete-line', title: "Supprimer le champ", method: :delete, form: { data: { turbo_confirm: 'Êtes vous sûr de vouloir supprimer ce champ ?' } } do
|
||||
.icon.delete
|
||||
%span.sr-only Supprimer
|
||||
|
||||
- if @errors.present?
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
%span.icon.search
|
||||
%span.icon.sign-out
|
||||
%span.icon.info
|
||||
%span.icon.delete
|
||||
%span.icon.help
|
||||
%span.icon.phone
|
||||
%span.icon.clock
|
||||
|
|
|
@ -45,6 +45,6 @@
|
|||
- menu.with_item(class: 'danger') do
|
||||
= link_to(dossier_path(dossier), role: 'menuitem', method: :delete, data: { disable: true, confirm: "En continuant, vous allez supprimer ce dossier ainsi que les informations qu’il contient. Toute suppression entraîne l’annulation de la démarche en cours.\n\nConfirmer la suppression ?" }) do
|
||||
|
||||
%span.icon.delete
|
||||
= dsfr_icon('fr-icon-delete-fill', :sm)
|
||||
.dropdown-description
|
||||
= t('views.users.dossiers.dossier_action.delete_dossier')
|
||||
|
|
Loading…
Reference in a new issue