diff --git a/README.md b/README.md index 77fa219c9da2..9a19fc822a42 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,6 @@ check out our [Contributing Guide](/.github/CONTRIBUTING.md) and our - @@ -260,10 +259,11 @@ check out our [Contributing Guide](/.github/CONTRIBUTING.md) and our + - +

Taylor Jones

💻 📖 ️️️️♿️

Niraj Sah

💻

David Padilla

💻

Allison Ishida

💻

Alex Lewitt

💻

HaRuki

💻 📖

Tresau-IBM

💻

HaRuki

💻 📖
diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap index ab0fefdbe663..93052161d755 100644 --- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap +++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap @@ -6055,9 +6055,6 @@ Map { "PopoverContent" => Object { "$$typeof": Symbol(react.forward_ref), "propTypes": Object { - "caret": Object { - "type": "bool", - }, "children": Object { "type": "node", }, diff --git a/packages/react/src/components/Popover/Popover.stories.js b/packages/react/src/components/Popover/Popover.stories.js index d97ec09c075d..3575ed19a0be 100644 --- a/packages/react/src/components/Popover/Popover.stories.js +++ b/packages/react/src/components/Popover/Popover.stories.js @@ -68,7 +68,7 @@ const PlaygroundStory = (props) => {
- +

Available storage

This server has 150 GB of block storage remaining. diff --git a/packages/react/src/components/Popover/index.tsx b/packages/react/src/components/Popover/index.tsx index 67ff3de54fd2..08f07da43672 100644 --- a/packages/react/src/components/Popover/index.tsx +++ b/packages/react/src/components/Popover/index.tsx @@ -418,13 +418,11 @@ Popover.propTypes = { open: PropTypes.bool.isRequired, }; -export type PopoverContentProps = { - caret?: boolean | null | undefined; -} & React.HTMLAttributes; +export type PopoverContentProps = React.HTMLAttributes; function PopoverContentRenderFunction( // eslint-disable-next-line react/prop-types - { className, children, caret = true, ...rest }: PopoverContentProps, + { className, children, ...rest }: PopoverContentProps, forwardRef: React.ForwardedRef ) { const prefix = usePrefix(); @@ -435,11 +433,7 @@ function PopoverContentRenderFunction( {children} - + ); } @@ -447,10 +441,6 @@ function PopoverContentRenderFunction( export const PopoverContent = React.forwardRef(PopoverContentRenderFunction); PopoverContent.propTypes = { - /** - * Provide whether caret should be visible or not. - */ - caret: PropTypes.bool, /** * Provide elements to be rendered inside of the component */ diff --git a/packages/styles/scss/components/popover/_popover.scss b/packages/styles/scss/components/popover/_popover.scss index 559f87f6237e..811e43ed280a 100644 --- a/packages/styles/scss/components/popover/_popover.scss +++ b/packages/styles/scss/components/popover/_popover.scss @@ -172,7 +172,7 @@ $popover-caret-height: custom-property.get-var( will-change: transform; } - .#{$prefix}--popover--open + .#{$prefix}--popover--caret.#{$prefix}--popover--open > .#{$prefix}--popover > .#{$prefix}--popover-caret { display: block; @@ -184,12 +184,6 @@ $popover-caret-height: custom-property.get-var( display: none; } - .#{$prefix}--popover--open - > .#{$prefix}--popover - > .#{$prefix}--popover-caret-close { - display: none; - } - //----------------------------------------------------------------------------- // Bottom //-----------------------------------------------------------------------------