Uploaded image for project: 'Atlassian Ecosystem'
  1. Atlassian Ecosystem
  2. ECO-750

Inconsistent Height Issue: UIKit UserPicker vs. Standard Select Component

    • Minor

      Issue Summary:

      The UIKit UserPicker component displays an inconsistent height compared to the standard Select component. This discrepancy can lead to visual misalignment and a lack of uniformity in the user interface. Ensuring consistent component sizing is crucial for maintaining a polished and cohesive design throughout the application.

      Steps to Reproduce

      The below is the sample code can be used under Frontend -> index.jsx to reproduce the issue.

       

      import React, { useEffect, useState } from 'react';
      import ForgeReconciler, { Text, UserPicker, Inline,DatePicker, Box, Label, Select, xcss} from '@forge/react';
      import { invoke } from '@forge/bridge';
      
      
      const App = () => {
        const [data, setData] = useState(null);
        useEffect(() => {
          invoke('getText', { example: 'my-invoke-variable' }).then(setData);
        }, []);
      
        return (
          <>
            <Text>Hello world!</Text>
            <Text>{data ? data : 'Loading...'}</Text>
            <Inline space={'space.200'}>
            <Box xcss={xcss({ width: '140px' })}>
            <Label>Start Date</Label>
            <DatePicker
                  placeholder={'1977-04-30'}
                  weekStartDay={1}
                  
                />
              </Box>
        <Box xcss={xcss({ width: '140px' })}>
          <Label>End Date</Label>
          <DatePicker
            placeholder={'2045-04-30'}
            weekStartDay={1}
          />
        </Box>
        <Box xcss={xcss({ width: '200px' })}>
          <UserPicker label={'Reporter'} name={'user'} />
        </Box>
        <Box xcss={xcss({ width: '170px' })}>
          <Label>Statuses</Label>
          <Select options={["one","two"]} isMulti />
        </Box>
      
      </Inline>
      
          </>
        );
      };
      
      ForgeReconciler.render(
        <React.StrictMode>
          <App />
        </React.StrictMode>
      ); 

       

      Expected Results

      It is expected that UIKit UserPicker component displays a consistent height compared to the standard Select component.

      Actual Results

      The UIKit UserPicker component displays an inconsistent height compared to the standard Select component.

      1. The UIKit UserPicker height is 44px

            2. The Select component height is 40px

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

          Form Name

            [ECO-750] Inconsistent Height Issue: UIKit UserPicker vs. Standard Select Component

            Jonathan Weiss made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Jonathan Weiss made changes -
            Last Update On New: 28/Mar/2025 [ 2025-03-28 ]
            Status Original: Needs Triage [ 10030 ] New: Needs Triage [ 10030 ]
            Rosa Faghihi made changes -
            Description Original: h3. Issue Summary:

            The UIKit UserPicker component displays an inconsistent height compared to the standard Select component. This discrepancy can lead to visual misalignment and a lack of uniformity in the user interface. Ensuring consistent component sizing is crucial for maintaining a polished and cohesive design throughout the application.
            h3. Steps to Reproduce

            The below is the sample code can be used under Frontend -> index.jsx to reproduce the issue.

             
            {code:java}
            import React, { useEffect, useState } from 'react';
            import ForgeReconciler, { Text, UserPicker, Inline,DatePicker, Box, Label, Select, xcss} from '@forge/react';
            import { invoke } from '@forge/bridge';


            const App = () => {
              const [data, setData] = useState(null);
              useEffect(() => {
                invoke('getText', { example: 'my-invoke-variable' }).then(setData);
              }, []);

              return (
                <>
                  <Text>Hello world!</Text>
                  <Text>{data ? data : 'Loading...'}</Text>
                  <Inline space={'space.200'}>
                  <Box xcss={xcss({ width: '140px' })}>
                  <Label>Start Date</Label>
                  <DatePicker
                        placeholder={'1977-04-30'}
                        weekStartDay={1}
                        
                      />
                    </Box>
              <Box xcss={xcss({ width: '140px' })}>
                <Label>End Date</Label>
                <DatePicker
                  placeholder={'2045-04-30'}
                  weekStartDay={1}
                />
              </Box>
              <Box xcss={xcss({ width: '200px' })}>
                <UserPicker label={'Reporter'} name={'user'} />
              </Box>
              <Box xcss={xcss({ width: '170px' })}>
                <Label>Statuses</Label>
                <Select options={["one","two"]} isMulti />
              </Box>

            </Inline>

                </>
              );
            };

            ForgeReconciler.render(
              <React.StrictMode>
                <App />
              </React.StrictMode>
            ); {code}
             
            h3. Expected Results

            It is expected that UIKit UserPicker component displays a consistent height compared to the standard Select component.
            h3. Actual Results

            The UIKit UserPicker component displays an inconsistent height compared to the standard Select component.
             # The UIKit UserPicker height is 44px

            !Screen Shot 2025-03-27 at 11.00.19 AM.png|width=676,height=78!
             # The Select component height is 40px

            !Screen Shot 2025-03-27 at 10.59.48 AM.png|width=814,height=85!
            h3. Workaround

            Currently there is no known workaround for this behavior. A workaround will be added here when available
            New: h3. Issue Summary:

            The UIKit *UserPicker* component displays an inconsistent height compared to the standard *Select* component. This discrepancy can lead to visual misalignment and a lack of uniformity in the user interface. Ensuring consistent component sizing is crucial for maintaining a polished and cohesive design throughout the application.
            h3. Steps to Reproduce

            The below is the sample code can be used under Frontend -> index.jsx to reproduce the issue.

             
            {code:java}
            import React, { useEffect, useState } from 'react';
            import ForgeReconciler, { Text, UserPicker, Inline,DatePicker, Box, Label, Select, xcss} from '@forge/react';
            import { invoke } from '@forge/bridge';


            const App = () => {
              const [data, setData] = useState(null);
              useEffect(() => {
                invoke('getText', { example: 'my-invoke-variable' }).then(setData);
              }, []);

              return (
                <>
                  <Text>Hello world!</Text>
                  <Text>{data ? data : 'Loading...'}</Text>
                  <Inline space={'space.200'}>
                  <Box xcss={xcss({ width: '140px' })}>
                  <Label>Start Date</Label>
                  <DatePicker
                        placeholder={'1977-04-30'}
                        weekStartDay={1}
                        
                      />
                    </Box>
              <Box xcss={xcss({ width: '140px' })}>
                <Label>End Date</Label>
                <DatePicker
                  placeholder={'2045-04-30'}
                  weekStartDay={1}
                />
              </Box>
              <Box xcss={xcss({ width: '200px' })}>
                <UserPicker label={'Reporter'} name={'user'} />
              </Box>
              <Box xcss={xcss({ width: '170px' })}>
                <Label>Statuses</Label>
                <Select options={["one","two"]} isMulti />
              </Box>

            </Inline>

                </>
              );
            };

            ForgeReconciler.render(
              <React.StrictMode>
                <App />
              </React.StrictMode>
            ); {code}
             
            h3. Expected Results

            It is expected that UIKit *UserPicker* component displays a consistent height compared to the standard *Select* component.
            h3. Actual Results

            The UIKit UserPicker component displays an inconsistent height compared to the standard Select component.
             # The UIKit *UserPicker* height is 44px

            !Screen Shot 2025-03-27 at 11.00.19 AM.png|width=676,height=78!

                  2. The *Select* component height is 40px

            !Screen Shot 2025-03-27 at 10.59.48 AM.png|width=814,height=85!
            h3. Workaround

            Currently there is no known workaround for this behavior. A workaround will be added here when available
            Rosa Faghihi made changes -
            Labels New: ecohelp
            Rosa Faghihi created issue -

              Unassigned Unassigned
              a60056aed681 Rosa Faghihi
              Affected customers:
              1 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated: