perf(dsfr): only include what alert and its dependencies as refered in README of each components
This commit is contained in:
parent
17d8c7a371
commit
a2311b1b75
2 changed files with 4 additions and 2 deletions
|
@ -13,6 +13,7 @@ class Dsfr::AlertComponent < ApplicationComponent
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def initialize(state:, title:)
|
def initialize(state:, title:)
|
||||||
@state = state
|
@state = state
|
||||||
@title = title
|
@title = title
|
||||||
|
@ -20,5 +21,4 @@ class Dsfr::AlertComponent < ApplicationComponent
|
||||||
end
|
end
|
||||||
|
|
||||||
attr_reader :state, :title, :block
|
attr_reader :state, :title, :block
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -68,4 +68,6 @@ window.DS = window.DS || DS;
|
||||||
import('../shared/track/matomo');
|
import('../shared/track/matomo');
|
||||||
import('../shared/track/sentry');
|
import('../shared/track/sentry');
|
||||||
|
|
||||||
import "../../../node_modules/@gouvfr/dsfr/dist/dsfr.min.css";
|
import '../../../node_modules/@gouvfr/dsfr/dist/core/core.css';
|
||||||
|
import '../../../node_modules/@gouvfr/dsfr/dist/component/button/button.css';
|
||||||
|
import '../../../node_modules/@gouvfr/dsfr/dist/component/alert/alert.css';
|
||||||
|
|
Loading…
Add table
Reference in a new issue