Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
fix(web): fix modal close button color
Gabe Kangas7e15a9eaba49
diff --git a/web/components/theme/AntdProvider.tsx b/web/components/theme/AntdProvider.tsxindex ccf317d6df..1d621479dc 100644--- a/web/components/theme/AntdProvider.tsx+++ b/web/components/theme/AntdProvider.tsx@@ -80,6 +80,10 @@ function buildTheme(appearanceVariables: Record<string, string>): ThemeConfig {}if (vars['theme-color-components-modal-header-text']) {modal.titleColor = vars['theme-color-components-modal-header-text'];+ // The close (X) button inherits the global icon color, which is dark and+ // invisible on the dark header; tie it to the header text color instead.+ modal.colorIcon = vars['theme-color-components-modal-header-text'];+ modal.colorIconHover = vars['theme-color-components-modal-header-text'];}if (vars['theme-color-components-modal-content-background']) {modal.contentBg = vars['theme-color-components-modal-content-background'];diff --git a/web/components/theme/antd-default-theme.json b/web/components/theme/antd-default-theme.jsonindex fabec99456..0b52f1e2a8 100644--- a/web/components/theme/antd-default-theme.json+++ b/web/components/theme/antd-default-theme.json@@ -19,6 +19,8 @@"Modal": {"headerBg": "#2d3748","titleColor": "#e2e8f0",+ "colorIcon": "#e2e8f0",+ "colorIconHover": "#ffffff","contentBg": "#e2e8f0","wireframe": true},diff --git a/web/components/ui/Modal/Modal.module.scss b/web/components/ui/Modal/Modal.module.scssindex b8dfdf2045..ca9cbb7218 100644--- a/web/components/ui/Modal/Modal.module.scss+++ b/web/components/ui/Modal/Modal.module.scss@@ -17,40 +17,3 @@margin-top: unset;}}--.modal {- :global(.ant-modal-header) {- color: var(--theme-color-components-modal-header-text);- font-family: var(--theme-text-display-font-family);- padding: 1rem 1.25rem;- }-- :global(.ant-modal-title) {- color: var(--theme-color-components-modal-header-text);- font-size: 17px;- font-weight: 600;- }-- :global(.ant-modal-body) {- overflow: auto;- border-radius: 0 0 var(--theme-rounded-corners) var(--theme-rounded-corners);- }-- :global(.ant-modal-close-x) {- font-size: 12px;- }-- :global(.ant-modal) {- color: var(--theme-color-components-text-on-light);-- h1 {- color: var(--theme-color-components-text-on-light);- }- }-- :global(.ant-modal-content) {- box-shadow:- 3px 15px 15px -3px rgb(0 0 0 / 15%),- 0 4px 6px -2px rgb(0 0 0 / 8%);- }-}diff --git a/web/components/ui/Modal/Modal.tsx b/web/components/ui/Modal/Modal.tsxindex 4ab95f372b..521cb29055 100644--- a/web/components/ui/Modal/Modal.tsx+++ b/web/components/ui/Modal/Modal.tsx@@ -77,7 +77,6 @@ export const Modal: FC<ModalProps> = ({centeredmaskClosable={maskClosable}destroyOnClose={destroyOnClose}- className={styles.modal}><ErrorBoundary// eslint-disable-next-line react/no-unstable-nested-componentsdiff --git a/web/next-env.d.ts b/web/next-env.d.tsindex 552b2a0c7f..d3956e1409 100644--- a/web/next-env.d.ts+++ b/web/next-env.d.ts@@ -1,6 +1,6 @@/// <reference types="next" />/// <reference types="next/image-types/global" />-import './.next/types/routes.d.ts';+import './.next/dev/types/routes.d.ts';// NOTE: This file should not be edited// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.diff --git a/web/styles/antd.css b/web/styles/antd.cssindex 7a43570b90..0f6df7ccae 100644--- a/web/styles/antd.css+++ b/web/styles/antd.css@@ -5167,6 +5167,8 @@ span.ant-typography-ellipsis-single-line {}}.owncast.ant-modal-css-var {+ --ant-color-icon: #e2e8f0;+ --ant-color-icon-hover: #ffffff;--ant-modal-footer-bg: transparent;--ant-modal-header-bg: #2d3748;--ant-modal-title-line-height: 1.5;@@ -5187,6 +5189,8 @@ span.ant-typography-ellipsis-single-line {--ant-modal-confirm-btns-margin-top: 24px;}.css-var-R11n.ant-css-var {+ --ant-color-icon: #e2e8f0;+ --ant-color-icon-hover: #ffffff;--ant-modal-footer-bg: transparent;--ant-modal-header-bg: #2d3748;--ant-modal-title-line-height: 1.5;@@ -6051,6 +6055,8 @@ span.ant-typography-ellipsis-single-line {}}.css-var-R1hn.ant-css-var {+ --ant-color-icon: #e2e8f0;+ --ant-color-icon-hover: #ffffff;--ant-modal-footer-bg: transparent;--ant-modal-header-bg: #2d3748;--ant-modal-title-line-height: 1.5;