Skip to content

Commit

Permalink
fix css rule override
Browse files Browse the repository at this point in the history
  • Loading branch information
joduplessis committed Jul 22, 2024
1 parent a5f8fa8 commit ab13dcf
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 32 deletions.
3 changes: 1 addition & 2 deletions dummy-data/data-grid.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Badge, IconLib, Select, Text, View, getKey, useEvent, waitForRender, addElementToArray } from '@fold-dev/core'
import { Badge, DataGridContext, DataGridTypes, IconLib, Select, Text, View, getKey, useEvent, waitForRender } from '@fold-dev/core'
import React, { FunctionComponent, useContext, useEffect, useRef, useState } from 'react'
import { DataGridContext, DataGridTypes } from '../src'

const countries = [
'United States',
Expand Down
10 changes: 4 additions & 6 deletions packages/core/src/data-grid/data-grid.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
import {
Button,
DataGrid, DataGridHeader, DataGridProvider, DataGridTypes,
FIBin,
FIX,
Icon,
Menu,
MenuProvider,
MenuSection,
Portal,
Text,
View,
arrayMove,
useDialog,
dataGridState, dispatchDataGridEvent,
useDialog
} from '@fold-dev/core'
import React, { useLayoutEffect, useState } from 'react'
import { DataGrid, DataGridHeader, DataGridProvider, DataGridTypes, dataGridState, dispatchDataGridEvent } from '../'
import React, { useState } from 'react'
import * as data from '../../../../dummy-data'
import './data-grid.css'

export default {
title: 'Components/DataGrid',
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/data-grid/data-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
positionDOMElement,
useDrag,
useEvent,
windowObject,
} from '../'
import { globalCursor, windowObject } from '../helpers'
import React, { ReactNode, useContext, useEffect, useMemo, useRef, useState } from 'react'
import { DataGridRow } from './data-grid-row'
import { DataGridContext } from './data-grid.provider'
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/data-grid/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export * from './data-grid-cell'
export * from './data-grid-cell-component'
export * from './data-grid-cell'
export * from './data-grid-default-cell-component'
export * from './data-grid-header'
export * from './data-grid-header-cell'
export * from './data-grid-header-cell-component'
export * from './data-grid-header-cell'
export * from './data-grid-header'
export * from './data-grid-row'
export * from './data-grid.provider'
export * from './data-grid'
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/date-picker/date-picker.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@

.f-date-cell.is-selected.is-start,
.f-date-cell.is-selected.is-end {
color: var(--f-date-cell-edge-selected);
color: var(--f-date-cell-edge-selected) !important;
}

.f-date-cell.is-selected::before {
Expand Down
26 changes: 11 additions & 15 deletions packages/core/src/date-picker/date-picker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,29 @@ import {
Badge,
Button,
Card,
DateCell,
DatePicker,
DatePickerMonth,
DatePickerProvider,
DatePickerWeekdays,
Heading,
IconLib,
Input,
InputControl,
InputPopover,
InputSuffix,
MonthPicker,
pad,
Popover,
ScrollingDatePicker,
Stack,
Text,
TimePicker,
useScrollingDatePicker,
useVisibility,
View,
YearPicker
} from '@fold-dev/core'
import React, { useEffect, useMemo, useRef, useState } from 'react'
import {
DateCell,
DatePicker,
DatePickerMonth,
DatePickerProvider,
MonthPicker,
ScrollingDatePicker,
TimePicker,
useScrollingDatePicker,
YearPicker,
DatePickerWeekdays,
} from '../'
import './date-picker.css'
import React, { useMemo, useRef, useState } from 'react'

export default {
title: 'Components/DatePicker',
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/date-picker/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export * from './date-cell'
export * from './date-picker-month'
export * from './date-picker-weekdays'
export * from './date-picker'
export * from './date-picker.context'
export * from './date-picker'
export * from './month-picker'
export * from './scrolling-date-picker'
export * from './time-picker-column'
Expand Down
9 changes: 6 additions & 3 deletions packages/core/src/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,8 @@ we don't want to use !important
@import '../cookie/cookie.css';
@import '../copy/copy.css';
@import '../cropper/cropper.css';
@import '../data-grid/data-grid.css';
@import '../date-picker/date-picker.css';
@import '../dialog/dialog.css';
@import '../divider/divider.css';
@import '../drag/drag.css';
@import '../drawer/drawer.css';
@import '../editable/editable.css';
@import '../form/form.css';
Expand Down Expand Up @@ -92,4 +89,10 @@ we don't want to use !important
@import '../view/view.css';
@import '../virtual/virtual.css';

/* more complex components load last */

@import '../drag/drag.css';
@import '../data-grid/data-grid.css';
@import '../date-picker/date-picker.css';


0 comments on commit ab13dcf

Please sign in to comment.