summaryrefslogtreecommitdiff
path: root/app/Template/task/description.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2019-02-19 14:45:01 -0800
committerFrédéric Guillot <fred@kanboard.net>2019-02-19 14:45:01 -0800
commit23417da7638868962e23667791b4b3c43c76195f (patch)
treea189c9650da4683e7a94e3310c76ebf674d80e04 /app/Template/task/description.php
parent1b6f98604a2e7891d2b7fb76aebd0bfb09b02d6b (diff)
Replace accordion Javascript component by <details> HTML element
Diffstat (limited to 'app/Template/task/description.php')
-rw-r--r--app/Template/task/description.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/Template/task/description.php b/app/Template/task/description.php
index f8e313dd..241b837a 100644
--- a/app/Template/task/description.php
+++ b/app/Template/task/description.php
@@ -1,10 +1,8 @@
-<section class="accordion-section <?= empty($task['description']) ? 'accordion-collapsed' : '' ?>">
- <div class="accordion-title">
- <h3><a href="#" class="fa accordion-toggle"></a> <?= t('Description') ?></h3>
- </div>
+<details class="accordion-section" <?= empty($task['description']) ? '' : 'open' ?>>
+ <summary class="accordion-title"><?= t('Description') ?></summary>
<div class="accordion-content">
<article class="markdown">
<?= $this->text->markdown($task['description'], isset($is_public) && $is_public) ?>
</article>
</div>
-</section>
+</details>