carbon icon indicating copy to clipboard operation
carbon copied to clipboard

Icon Component - Allow to align totally left

Open eduguillem-sage opened this issue 1 year ago • 3 comments

Desired behaviour

I need to align totally left the icon in order to be aligned with the other text, so I need to be able to remove the spacing on left and right wich is setted by default

Current behaviour

The Icon has a default spacing that does not allow to align with the rest of the text

Suggested Solution

No response

CodeSandbox or Storybook URL

https://codesandbox.io/s/compassionate-mcclintock-8xxpt4?file=/src/App.js

Anything else we should know?

No response

Confidentiality

  • [X] I confirm there is no confidential or commercially sensitive information included.

eduguillem-sage avatar Aug 11 '23 10:08 eduguillem-sage

@harpalsingh would there be any implications if the icon padding is removed or modified? Here is the same codesandbox as above but with text included as @eduguillem-sage described

Parsium avatar Aug 15 '23 13:08 Parsium

FE-6210

Parsium avatar Sep 12 '23 14:09 Parsium

@eduguillem-sage would you be able to provide some context to why you need the ability to control the spacing around the icon?

Parsium avatar Nov 07 '23 14:11 Parsium