Skip to content

Commit 4bafa47

Browse files
committed
fix(core): button contrast state
- fix contrast issue for pressed state - remove unused esm logging message Signed-off-by: Cory Rylan <crylan@nvidia.com>
1 parent beee0dd commit 4bafa47

3 files changed

Lines changed: 1 addition & 12 deletions

File tree

projects/core/src/button/button.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
--color: var(--nve-sys-text-white-color);
145145
}
146146

147-
:host(:hover:not([interaction], [disabled], [readonly])) {
147+
:host(:hover:not([interaction], [disabled], [readonly], [pressed])) {
148148
--color: var(--nve-sys-interaction-hover-color);
149149
}
150150

projects/core/src/internal/services/global.utils.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
import { getEsmHostedWarning } from '../utils/audit-logs.js';
5-
64
declare global {
75
var process: { env?: { NODE_ENV?: string } } | undefined;
86
}
@@ -22,11 +20,6 @@ export function getEnv(): 'development' | 'production' {
2220
export function getHostDetails(): { moduleHost: string; pageHost: string } {
2321
const pageHost = globalThis.location?.hostname;
2422
const moduleHost = new URL(import.meta.url).hostname;
25-
const isEsmHosted = moduleHost.startsWith('esm.');
26-
27-
if (isEsmHosted && pageHost !== 'localhost' && !pageHost.includes('esm.')) {
28-
console.warn(getEsmHostedWarning());
29-
}
3023

3124
return {
3225
pageHost,

projects/core/src/internal/utils/audit-logs.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,3 @@ export function getDuplicatePackageVersionWarning(localName: string, version: st
3636
export function getDuplicatePackageGlobalVersionWarning() {
3737
return `@nve: Multiple versions of Elements loaded, please check for duplicate package versions. ${DOCS_LOG_URL}#duplicate-package-version`;
3838
}
39-
40-
export function getEsmHostedWarning() {
41-
return '@nve: Using esm.sh is not supported for production use.';
42-
}

0 commit comments

Comments
 (0)