Skip to content

Commit

Permalink
fix(comp:header): remove breakground-color (#1392)
Browse files Browse the repository at this point in the history
  • Loading branch information
danranVm committed Jan 9, 2023
1 parent 81ff47e commit 55bb758
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/cdk/breakpoint/src/breakpoints.ts
Expand Up @@ -15,7 +15,7 @@ import { useMediaQuery } from './mediaQuery'

export const BREAKPOINTS_KEYS = ['xs', 'sm', 'md', 'lg', 'xl'] as const

export type BreakpointKey = typeof BREAKPOINTS_KEYS[number]
export type BreakpointKey = (typeof BREAKPOINTS_KEYS)[number]

export const BREAKPOINTS: Record<BreakpointKey, string> = {
xs: '(max-width: 599.99px)',
Expand Down
2 changes: 1 addition & 1 deletion packages/cdk/resize/src/resizable/types.ts
Expand Up @@ -72,7 +72,7 @@ export type ResizableHandleInstance = InstanceType<DefineComponent<ResizableHand

export type ResizableOptions = Omit<ResizablePublicProps, 'disabled' | 'is' | 'handlers'>

export type ResizableHandlePlacement = typeof allHandlePlacements[number]
export type ResizableHandlePlacement = (typeof allHandlePlacements)[number]

export interface ResizePosition {
width: number
Expand Down
4 changes: 0 additions & 4 deletions packages/components/collapse/style/index.less
Expand Up @@ -71,10 +71,6 @@
.@{collapse-prefix}-panel {
border-color: transparent;

.@{header-prefix} {
background-color: transparent;
}

&-content {
border-color: transparent;
background-color: var(--ix-background-color);
Expand Down
2 changes: 1 addition & 1 deletion packages/components/header/style/index.less
Expand Up @@ -3,7 +3,7 @@

.@{header-prefix} {
.reset-component-new();
.reset-color(@header-color);
.reset-color(@header-color, transparent);

position: relative;
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion packages/components/loading-bar/src/types.ts
Expand Up @@ -11,7 +11,7 @@ import type { DefineComponent, PropType } from 'vue'

export const STATUS_TYPE = ['loading', 'finish', 'error'] as const

export type StatusType = typeof STATUS_TYPE[number]
export type StatusType = (typeof STATUS_TYPE)[number]

export interface LoadingBarOptions {
mask?: boolean
Expand Down
4 changes: 2 additions & 2 deletions packages/components/notification/src/types.ts
Expand Up @@ -59,8 +59,8 @@ export const notificationProviderProps = {
offset: [String, Number, Array] as PropType<string | number | (number | string)[]>,
} as const

export type NotificationType = typeof notificationType[number]
export type NotificationPlacement = typeof notificationPlacement[number]
export type NotificationType = (typeof notificationType)[number]
export type NotificationPlacement = (typeof notificationPlacement)[number]
export type NotificationNodePropKey = 'title' | 'content' | 'footer'
export type NotificationProps = ExtractInnerPropTypes<typeof notificationProps>
export type NotificationPublicProps = ExtractPublicPropTypes<typeof notificationProps>
Expand Down
7 changes: 2 additions & 5 deletions packages/components/pagination/style/index.less
Expand Up @@ -116,14 +116,14 @@
}
}

&:hover {
&:hover:not(&-disabled) {
color: @pagination-color-hover;
.@{pagination-prefix}-item-content {
background-color: @pagination-background-color-hover;
}
}

&&-active {
&&-active:not(&-disabled) {
color: @pagination-color-active;
.@{pagination-prefix}-item-content {
background-color: @pagination-background-color-active;
Expand All @@ -133,9 +133,6 @@
&&-disabled {
cursor: not-allowed;
color: @pagination-color-disabled;
.@{pagination-prefix}-item-content {
background-color: @pagination-background-color;
}
}

&&-active&-disabled &-content {
Expand Down
2 changes: 1 addition & 1 deletion packages/pro/search/src/types/searchFields.ts
Expand Up @@ -27,7 +27,7 @@ interface SearchFieldBase<V = unknown> {
}

export const searchDataTypes = ['select', 'input', 'datePicker', 'dateRangePicker', 'custom'] as const
export type SearchDataTypes = typeof searchDataTypes[number]
export type SearchDataTypes = (typeof searchDataTypes)[number]

export interface SelectSearchField extends SearchFieldBase<VKey | VKey[]> {
type: 'select'
Expand Down
4 changes: 3 additions & 1 deletion packages/pro/tree/style/index.less
Expand Up @@ -9,7 +9,7 @@
display: flex;
flex-direction: column;
overflow: hidden;
transition: width @transition-duration-base;
transition: width var(--ix-transition-duration-medium) var(--ix-ease-in-out);

&-header-wrapper,
&-search-wrapper {
Expand All @@ -27,6 +27,8 @@
}

&-header-wrapper {
min-height: 40px;

.@{icon-prefix} {
font-size: @pro-tree-header-wrapper-icon-font-size;
line-height: calc(@pro-tree-header-wrapper-icon-font-size + var(--ix-line-height-gutter));
Expand Down

0 comments on commit 55bb758

Please sign in to comment.