From e4f2fb0fa8642abd012b7d5019fbcbfe65063e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Inayaili=20Le=C3=B3n?= Date: Tue, 22 Sep 2020 14:57:02 +0100 Subject: [PATCH] Small edits --- docs/content/packages/javascript.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/packages/javascript.mdx b/docs/content/packages/javascript.mdx index ee63a21a1..3dc08003b 100644 --- a/docs/content/packages/javascript.mdx +++ b/docs/content/packages/javascript.mdx @@ -105,7 +105,7 @@ octicons.x.heights ### `octicons[name].heights[height].width` -Returns the icon's true width, based on the svg view box width. _Note, this doesn't change if you scale it up with size options, it only is the natural width of the icon._ +Returns the icon's true width, based on the SVG view box width. _Note, this doesn't change if you scale it up with size options, it only is the natural width of the icon._ ### `octicons[name].heights[height].path` @@ -134,7 +134,7 @@ octicons.x.toSVG() // ``` -The `.toSVG()` method accepts an optional `options` object. This is used to add CSS classnames, a11y options, and sizing. +The `.toSVG()` method accepts an optional `options` object. This is used to add CSS classnames, acessibility options, and sizing. #### class @@ -154,9 +154,9 @@ octicons.x.toSVG({ "aria-label": "Close the window" }) // ``` -#### width & height +#### width and height -Size the SVG icon larger using `width` & `height` independently or together. `.toSVG()` will automatically choose the best SVG to render based on the width or height passed in. +Size the SVG icon larger using `width` and `height` independently or together. `.toSVG()` will automatically choose the best SVG to render based on the width or height passed in. ```js octicons.x.toSVG({ "width": 45 })