Figma Support Forum

Internal "." prefaced components published to library

I’ve now had two components designated as internal to my design system library file via a “.” preface end up published as part of the library. Was able to resolve this bug in one instance by changing the “.” to an “_”. In the other instance, I had actually intended to publish the component and ultimately removed the “.”, so this wasn’t a big deal.

Per Figma documentation on publishing components to libraries, prefacing components with either a period or an underscore should prevent them from being published. I have many other internal components in this file that are respecting their “.” preface, so I’m not sure what might be causing this bug. Any ideas?

The issue is that components that should be hidden from library users were being published to our design system, even with the . preface which should designate them as private to the file.

I believe both of these instances happened prior to the new Figma release that allows the user to select which components are published. This new feature decreases the risk of private components being accidentally published in our libraries.

I’m just confused how private components were ever publishable in the first place, since both . and _ prefaces should keep them internal. If this bug arises again, we risk confusing our design system users if they accidentally use .base components that don’t have all the variants to support our brand themes and color modes.

What’s said in the previous message can work the other way around. Basically by right clicking the component and removing/adding it to library manually you can override the automatic . and _ removal from the library. And when you changed the name from . to _ the automatic removal was applied again overriding the manual addition.

Or this could be a bug of course, in this case you need to report it to Figma support team via the bug report form.

1 Like