Skip to content

Commit 4c6a8b5

Browse files
committed
switched to unescaped rendering within collection order indicator and fixed unescaped component docs
1 parent 22c7703 commit 4c6a8b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/concepts/matestack/ui/core/collection/order/toggle/indicator/indicator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Indicator < Matestack::Ui::Core::Component::Static
44
def response
55
span @tag_attributes do
66
span attributes: {"v-if": "ordering['#{@component_config[:key]}'] === undefined"}, text: @component_config[:default]
7-
plain "{{
7+
unescaped "{{
88
orderIndicator('#{@component_config[:key]}', { asc: '#{@component_config[:asc]}', desc: '#{@component_config[:desc]}'})
99
}}"
1010
end

docs/api/2-components/rawhtml.md renamed to docs/api/2-components/unescaped.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Matestack Core Component: Rawhtml
1+
# Matestack Core Component: Unescaped
22

33
This element simply renders the value of a variable (or simple a string) wherever you want it **without escaping HTML**.
44

@@ -15,7 +15,7 @@ Rendering some HTML.
1515
```ruby
1616

1717
def response
18-
rawhtml <<~HTML
18+
unescaped <<~HTML
1919
<h1>Hello World</h1>
2020
<script>alert('Really Hello!')</script>
2121
HTML

0 commit comments

Comments
 (0)