Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 3c9e5a3

Browse files
committed
Provide a valid ARIA attribute
1 parent f251d4f commit 3c9e5a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/react/dsl_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,12 @@ def render
251251
Foo.class_eval do
252252
include React::Component
253253
def render
254-
div(data: { foo: :bar }, aria: { foo_bar: :foo })
254+
div(data: { foo: :bar }, aria: { label: "title" })
255255
end
256256
end
257257

258258
expect(Foo)
259-
.to render_static_html('<div data-foo="bar" aria-foo-bar="foo"></div>')
259+
.to render_static_html('<div data-foo="bar" aria-label="title"></div>')
260260
end
261261

262262
it 'should not convert a hash param to hyphenated html attributes if not in React::HASH_ATTRIBUTES' do

0 commit comments

Comments
 (0)