We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19b06cf commit 638b1b9Copy full SHA for 638b1b9
tests/Cell.spec.tsx
@@ -122,4 +122,28 @@ describe('Table.Cell', () => {
122
123
expect(wrapper.find('thead th').prop('title')).toEqual('Bamboo');
124
});
125
+
126
+ // https://github.com/ant-design/ant-design/issues/51763
127
+ it('style merge order', () => {
128
+ const wrapper = mount(
129
+ <Table
130
+ columns={[
131
+ {
132
+ align: 'center',
133
+ onHeaderCell: () => ({
134
+ style: {
135
+ color: 'red',
136
+ textAlign: 'end', // overwrite align
137
+ },
138
+ }),
139
140
+ ]}
141
+ />,
142
+ );
143
144
+ expect(wrapper.find('thead th').prop('style')).toEqual({
145
146
+ textAlign: 'end',
147
+ });
148
149
0 commit comments