Skip to content

Commit

Permalink
Merge pull request #868 from helsingborg-stad/chore/removing-unused-b…
Browse files Browse the repository at this point in the history
…uttonGroup-component

chore: removing unused component
  • Loading branch information
Anna authored Jan 8, 2024
2 parents 9441efe + a1d81a7 commit 73f9a75
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 164 deletions.
25 changes: 12 additions & 13 deletions views/layout/script_doc.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@
<div class="markup-preview">
{!! $slot !!}
</div>

@buttonGroup(['borderColor' => 'default', 'classList' => ['d-code__toggle', 'c-code__toggle']])
@button([
'text' => 'HTML',
'color' => 'default',
'type' => 'basic',
'size' => 'md',
'icon' => 'code',
'toggle' => true,
'attributeList' => ['js-toggle-trigger' => '0809417221', 'js-toggle-group' => '0809417221']
])
@endbutton
@endbuttonGroup
<div class="d-code__toggle c-code__toggle">
@button([
'text' => 'HTML',
'color' => 'default',
'type' => 'basic',
'size' => 'md',
'icon' => 'code',
'toggle' => true,
'attributeList' => ['js-toggle-trigger' => '0809417221', 'js-toggle-group' => '0809417221']
])
@endbutton
</div>

@code(['language' => 'html', 'content' => "", 'classList' => ['d-code', 'u-display--none'], 'attributeList' => ['js-toggle-item' => '0809417221', 'js-toggle-class' => 'u-display--block', 'js-toggle-group' => '0809417221']])
{{ \HbgStyleGuide\Helper\ParseString::tidyHtml($slot)}}
Expand Down
14 changes: 0 additions & 14 deletions views/pages/components/molecules/buttonGroup.blade.php

This file was deleted.

31 changes: 0 additions & 31 deletions views/pages/components/molecules/splitbutton.blade.php

This file was deleted.

7 changes: 0 additions & 7 deletions views/pages/components/usage/buttonGroup/buttonGroup.json

This file was deleted.

32 changes: 0 additions & 32 deletions views/pages/components/usage/buttonGroup/slot.blade.php

This file was deleted.

4 changes: 0 additions & 4 deletions views/pages/components/usage/splitbutton.blade.php

This file was deleted.

7 changes: 0 additions & 7 deletions views/pages/components/usage/splitbutton/button.blade.php

This file was deleted.

8 changes: 0 additions & 8 deletions views/pages/components/usage/splitbutton/splitbutton.json

This file was deleted.

50 changes: 24 additions & 26 deletions views/pages/icons.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
'id' => '303',
'placeholder' => 'Search',
'type' => 'text',
'classList' => [],
'classList' => [
'u-display--grid'
],
'textarea' => false,
'attributeList' => [
'js-filter-input' => '5da57cccd46c6'
Expand All @@ -26,31 +28,27 @@

@paper(['padding' => 3])
<div class="d-icons__controlls">
@buttonGroup(['borderColor' => 'default'])
@button([
'text' => 'Expand all',
'icon' => 'unfold_more',
'size' => 'lg',
'attributeList' => ['icons_expand' => '']
])
@endbutton

@button([
'text' => 'Minimize all',
'size' => 'lg',
'icon' => 'unfold_less',
'attributeList' => ['icons_minimize' => '']
])
@endbutton

@button([
'text' => 'Sort icons',
'size' => 'lg',
'icon' => 'sort_by_alpha',
'attributeList' => ['js-sort-button' => '111-0']
])
@endbutton
@endbuttonGroup
@button([
'text' => 'Expand all',
'icon' => 'unfold_more',
'size' => 'lg',
'attributeList' => ['icons_expand' => '']
])
@endbutton
@button([
'text' => 'Minimize all',
'size' => 'lg',
'icon' => 'unfold_less',
'attributeList' => ['icons_minimize' => '']
])
@endbutton
@button([
'text' => 'Sort icons',
'size' => 'lg',
'icon' => 'sort_by_alpha',
'attributeList' => ['js-sort-button' => '111-0']
])
@endbutton
</div>


Expand Down
42 changes: 20 additions & 22 deletions views/pages/script/class-toggle.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,28 +45,26 @@
Toggle group
@endtypography

@buttonGroup(['borderColor' => 'default', 'classList' => ['u-margin__bottom--3']])
@button([
'text' => 'Box One',
'color' => 'default',
'type' => 'basic',
'size' => 'md',
'icon' => 'code',
'toggle' => true,
'attributeList' => ['data-js-toggle-trigger' => "iddd", 'data-js-toggle-group' => "example2"]
])
@endbutton
@button([
'text' => 'Box Two',
'color' => 'default',
'type' => 'basic',
'size' => 'md',
'icon' => 'code',
'toggle' => true,
'attributeList' => ['data-js-toggle-trigger' => "iddd2", 'data-js-toggle-group' => "example2"]
])
@endbutton
@endbuttonGroup
@button([
'text' => 'Box One',
'color' => 'default',
'type' => 'basic',
'size' => 'md',
'icon' => 'code',
'toggle' => true,
'attributeList' => ['data-js-toggle-trigger' => "iddd", 'data-js-toggle-group' => "example2"]
])
@endbutton
@button([
'text' => 'Box Two',
'color' => 'default',
'type' => 'basic',
'size' => 'md',
'icon' => 'code',
'toggle' => true,
'attributeList' => ['data-js-toggle-trigger' => "iddd2", 'data-js-toggle-group' => "example2"]
])
@endbutton

<div class="u-color__bg--default u-rounded">
<div class="u-rounded u-padding--2" data-js-toggle-item="iddd" data-js-toggle-class="u-color__bg--secondary" data-js-toggle-group="example2">
Expand Down

0 comments on commit 73f9a75

Please sign in to comment.