siemens / ix

Siemens Industrial Experience is a design system for designers and developers, to consistently create the perfect digital experience for industrial software products.
https://ix.siemens.io/
MIT License
174 stars 62 forks source link

Done button in DatePicker not visible when `range` property set to `false` #1030

Open mohitmutha opened 6 months ago

mohitmutha commented 6 months ago

What happened?

When the range property is set to true the IxDatePicker displays a Done button. However the button is hidden when the range property is false

image

What type of frontend frameware are you seeing the problem on?

React

Which version of iX do you use?

v2.0.0

Code to produce this issue.

https://stackblitz.com/edit/v4gjuh?file=src%2Fdatepicker.tsx

/*
 * SPDX-FileCopyrightText: 2023 Siemens AG
 *
 * SPDX-License-Identifier: MIT
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

import { IxDatePicker } from '@siemens/ix-react';
import React from 'react';

export default () => {
  return (
    <>
      <IxDatePicker range={true} />
      <br />
      <IxDatePicker range={false} />
    </>
  );
};
matthiashader commented 5 months ago

Internal ref [IX-864]