Skip to content

Commit

Permalink
feat: media controls attribute follows spec
Browse files Browse the repository at this point in the history
  • Loading branch information
msimmer committed Nov 11, 2022
1 parent f9c2e2a commit 099c619
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/b-ber-grammar-attributes/src/index.js
Expand Up @@ -72,11 +72,8 @@ const _applyTransforms = (k, v) => {
case 'source':
return ` src="${v}"`

// media controls enabled by default
// Boolean attrs for audio/video elements
case 'controls':
return v === 'no' ? '' : ` ${k}="${v}"`

// boolean attrs for audio/video elements
case 'autoplay':
case 'muted':
case 'autobuffer':
Expand Down

0 comments on commit 099c619

Please sign in to comment.