From eafe2a0f1202074183985bedec22ca999378e86f Mon Sep 17 00:00:00 2001 From: Fs00 Date: Thu, 17 Oct 2019 16:31:51 +0200 Subject: [PATCH] [React] Allow 'unset' value for verticalAlign prop --- lib/octicons_react/src/index.d.ts | 2 +- lib/octicons_react/src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/octicons_react/src/index.d.ts b/lib/octicons_react/src/index.d.ts index 6b5c17956..d5f70e63d 100644 --- a/lib/octicons_react/src/index.d.ts +++ b/lib/octicons_react/src/index.d.ts @@ -10,7 +10,7 @@ export interface OcticonProps { height?: number icon: Icon size?: number | Size - verticalAlign?: 'middle' | 'text-bottom' | 'text-top' | 'top' + verticalAlign?: 'middle' | 'text-bottom' | 'text-top' | 'top' | 'unset' width?: number } diff --git a/lib/octicons_react/src/index.js b/lib/octicons_react/src/index.js index baa715649..c9431e024 100644 --- a/lib/octicons_react/src/index.js +++ b/lib/octicons_react/src/index.js @@ -62,7 +62,7 @@ Octicon.propTypes = { height: PropTypes.number, icon: PropTypes.func, size: PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(Object.keys(sizeMap))]), - verticalAlign: PropTypes.oneOf(['middle', 'text-bottom', 'text-top', 'top']), + verticalAlign: PropTypes.oneOf(['middle', 'text-bottom', 'text-top', 'top', 'unset']), width: PropTypes.number }